IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::mpi::ReplicaExchange Class Reference

A class to implement Hamiltonian Replica Exchange. More...

#include <IMP/mpi/ReplicaExchange.h>

Inheritance diagram for IMP::mpi::ReplicaExchange:

Detailed Description

A class to implement Hamiltonian Replica Exchange.

Any model parameter can be used as exchange parameter: temperature, restraint intensity, ...

Definition at line 36 of file ReplicaExchange.h.

Public Member Functions

Floats create_temperatures (double tmin, double tmax, int nrep)
 Initialize array of temperatures.
bool do_exchange (double myscore0, double myscore1, int findex)
 Try an exchange.
Ints get_exchange_array ()
 Get the array with exchange acceptance.
int get_friend_index (int istep)
 Get the index of friend with which trying an exchange.
Floats get_friend_parameter (std::string key, int findex)
 Get the value of my friend's parameter.
int get_my_index () const
 Get replica index.
Floats get_my_parameter (std::string key)
 Get the value of my exchange parameter.
int get_number_of_replicas () const
 Get number of replicas.
virtual std::string get_type_name () const override
virtual ::IMP::VersionInfo get_version_info () const override
 Get information about the module and version of the object.
void set_my_parameter (std::string key, Floats values)
 Set exchange parameter.
Public Member Functions inherited from IMP::Object
CheckLevel get_check_level () const
 get_derived_object (self)
 Return this object cast to the most derived subclass.
LogLevel get_log_level () const
void set_check_level (CheckLevel l)
void set_log_level (LogLevel l)
 Set the logging level used in this object.
const std::string & get_name () const
 Get the (not necessarily unique) name of this object.
void set_name (std::string name)
void set_was_used (bool tf) const
void show (std::ostream &out=std::cout) const
virtual void clear_caches ()

Additional Inherited Members

Protected Member Functions inherited from IMP::Object
 Object (std::string name)
 Construct an object with the given name.
virtual void do_destroy ()

Constructor & Destructor Documentation

◆ ~ReplicaExchange()

virtual IMP::mpi::ReplicaExchange::~ReplicaExchange ( )
virtual

Definition at line 88 of file ReplicaExchange.h.

Member Function Documentation

◆ create_temperatures()

Floats IMP::mpi::ReplicaExchange::create_temperatures ( double tmin,
double tmax,
int nrep )

Initialize array of temperatures.

Temperatures are distributed according to a geometric progression

◆ do_exchange()

bool IMP::mpi::ReplicaExchange::do_exchange ( double myscore0,
double myscore1,
int findex )

Try an exchange.

◆ get_exchange_array()

Ints IMP::mpi::ReplicaExchange::get_exchange_array ( )

Get the array with exchange acceptance.

◆ get_friend_index()

int IMP::mpi::ReplicaExchange::get_friend_index ( int istep)

Get the index of friend with which trying an exchange.

◆ get_friend_parameter()

Floats IMP::mpi::ReplicaExchange::get_friend_parameter ( std::string key,
int findex )

Get the value of my friend's parameter.

◆ get_my_index()

int IMP::mpi::ReplicaExchange::get_my_index ( ) const

Get replica index.

Definition at line 84 of file ReplicaExchange.h.

◆ get_my_parameter()

Floats IMP::mpi::ReplicaExchange::get_my_parameter ( std::string key)

Get the value of my exchange parameter.

◆ get_number_of_replicas()

int IMP::mpi::ReplicaExchange::get_number_of_replicas ( ) const

Get number of replicas.

Definition at line 86 of file ReplicaExchange.h.

◆ get_type_name()

virtual std::string IMP::mpi::ReplicaExchange::get_type_name ( ) const
overridevirtual

Reimplemented from IMP::Object.

Definition at line 88 of file ReplicaExchange.h.

◆ get_version_info()

virtual ::IMP::VersionInfo IMP::mpi::ReplicaExchange::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::Object.

Definition at line 88 of file ReplicaExchange.h.

◆ set_my_parameter()

void IMP::mpi::ReplicaExchange::set_my_parameter ( std::string key,
Floats values )

Set exchange parameter.


The documentation for this class was generated from the following file: