meld.remd.leader.LeaderReplicaExchangeRunner
- class meld.remd.leader.LeaderReplicaExchangeRunner(n_replicas, max_steps, ladder, adaptor)[source]
Bases:
objectClass to coordinate running of replica exchange
This class doesn’t really know much about the calculation that is happening, but it’s the glue that holds everything together.
- __init__(n_replicas, max_steps, ladder, adaptor)[source]
Initialize a LeaderReplicaExchangeRunner
- Parameters
n_replicas (
int) – number of replicasmax_steps (
int) – maximum number of steps to runladder (
NearestNeighborLadder) – ladder object to handle exchangesadaptor (
Union[NullAdaptor,EqualAcceptanceAdaptor]) – adaptor object to handle alphas adaptation
Methods
__init__(n_replicas, max_steps, ladder, adaptor)Initialize a LeaderReplicaExchangeRunner
run(communicator, system_runner, store)Run replica exchange until finished
Convert leader to worker
Attributes
current values of alpha
number of steps to run
number of replicas
current step
- property alphas: List[float]
current values of alpha
- property max_steps: int
number of steps to run
- property n_replicas: int
number of replicas
- run(communicator, system_runner, store)[source]
Run replica exchange until finished
- Parameters
communicator (
ICommunicator) – a communicator object to talk with workerssystem_runner (
IRunner) – a interfaces.IRunner object to run the simulationsstore (
DataStore) – a store object to handle storing data to disk
- property step: int
current step