Metropolis

class Metropolis : public feasst::Criteria

Metropolis et al.[1] acceptance criteria.

References:

Arguments

  • trials_per_cycle: define a cycle as a number of trials (as measured by number of calls to is_accepted) default: 1e9. Cycles are not necessarily the number of particles, nor do cycles perturb each particle in order systematically.

  • Criteria arguments.

Public Functions

Metropolis(std::shared_ptr<Constraint> constraint)

Same as above, but with an added constraint.

bool is_accepted(const System &system, Acceptance *acceptance, Random *random)

Return whether or not the trial attempt should be accepted.