8 #ifndef IMPMPI_REPLICA_EXCHANGE_H
9 #define IMPMPI_REPLICA_EXCHANGE_H
11 #include "mpi_config.h"
17 IMPMPI_BEGIN_NAMESPACE
36 std::map<std::string,Floats> parameters_;
40 Ints create_indexes();
43 Ints create_exarray();
45 bool get_acceptance(
double myscore,
double fscore);
47 int get_rank(
int index);
55 void set_my_parameter(std::string key,
Floats values);
57 Floats get_my_parameter(std::string key);
59 int get_friend_index(
int istep);
61 Ints get_exchange_array();
63 Floats get_friend_parameter(std::string key,
int findex);
65 bool do_exchange(
double myscore0,
double myscore1,
int findex);
68 Floats create_temperatures(
double tmin,
double tmax,
int nrep);
A class to implement Hamiltonian Replica Exchange.
int get_my_index() const
Get replica index.
int get_number_of_replicas() const
Get number of replicas.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Common base class for heavy weight IMP objects.
virtual void do_destroy()
A shared base class to help in debugging and things.