PerturbModel

class PerturbModel : public feasst::Perturb

Change the ModelExpanded::model_index by plus or minus one.

Public Functions

void perturb(System *system, TrialSelect *select, Random *random, const bool is_position_held = false, Acceptance *acceptance = NULL)

Perturb the selection of the system.

param is_position_held:

If position is held, all but perform the actual perturbation, as typically required for calculations of old configurations and Rosenbluth

void change_model_index(const int delta_model_index, System *system)

Change Model::model_index.

void revert(System *system)

Revert the system for an unaccepted perturbation.

Arguments

args:

  • potential_index: index of potential with model_index (default: 0).