PerturbModel

class PerturbModel : public feasst::Perturb

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

Arguments

args:

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

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.

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.