Samplers Header for YAML Files¶
The samplers
section tells YANK how it should sample multiple thermodynamic states in order to estimate free
energies between states of interest.
Together with the mcmc_moves section, this section provides a flexible way to control how
thermodynamic states are efficiently sampled.
This block is fully optional for those who do not wish to fiddle with such settings and to
support backwards compatible YAML scripts. If this no sampler
is given to experiment
, then a DEFAULT one is
used.
Samplers Syntax¶
samplers:
{UserDefinedSamplerName}:
type: {Sampler}
mcmc_moves: {MCMCName}
number_of_iterations: {NumberOfIterations}
{SamplerOptions}
The {Sampler}
can be one of the following:
- MultistateSampler: Independent simulations at distinct thermodynamic states
- ReplicaExchangeSampler: Replica exchange among thermodynamic states (also called Hamiltonian exchange if only the Hamiltonian is changing)
- SAMSSampler: Self-adjusted mixture sampling (also known as optimally-adjusted mixture sampling)
The above block is the minimum syntax needed for any definition for any of the options.
The {MCMCName}
denotes the name of an MCMC scheme block to be used to update the replicas at fixed thermodynamic state.
See MCMC defaults for more information about MCMC schemes.
The {NumberOfIterations}
is a non-negative integer that denotes the maximum number of iterations to be run.
When this block is not given and default_number_of_iterations is set
in the main Options for YAML files block, then that number is used instead. See that description for more information
{SamplerOptions}
denotes an optional set of sampler-specific options that can individually be specified if user
desires to override defaults. The MultiStateSampler
is the base class for all other samples and options which
can be provided to it are global to all other samplers. Below the MultiStateSampler
are the individual options
available for every other choice of type
.