Package ffx.algorithms.optimize.manybody
Class RotamerMatrixMC
java.lang.Object
ffx.algorithms.mc.BoltzmannMC
ffx.algorithms.optimize.manybody.RotamerMatrixMC
- All Implemented Interfaces:
MetropolisMC
Monte Carlo driver for DEE-MC.
-
Field Summary
Fields inherited from class ffx.algorithms.mc.BoltzmannMC
random
-
Constructor Summary
ConstructorDescriptionRotamerMatrixMC
(int[] rotamers, Residue[] residues, boolean useFullAMOEBAEnergy, RotamerOptimization rotamerOptimization) The Rotamers array must be the same array as passed to any MCMove objects used (and not a copy). -
Method Summary
Modifier and TypeMethodDescriptionprotected double
If useFullAMOEBAEnergy is set to true, explicitly evaluates energy, else computes energy from the rotamer energy matrices.void
If possible, reverts the last successful Monte Carlo step taken.protected void
Store the state for reverting a move.Methods inherited from class ffx.algorithms.mc.BoltzmannMC
acceptChance, evaluateMove, evaluateMove, getAccept, getE1, getE2, getTemperature, lastEnergy, mcStep, mcStep, mcStep, mcStep, setPrint, setRandomSeed, setTemperature
-
Constructor Details
-
RotamerMatrixMC
public RotamerMatrixMC(int[] rotamers, Residue[] residues, boolean useFullAMOEBAEnergy, RotamerOptimization rotamerOptimization) The Rotamers array must be the same array as passed to any MCMove objects used (and not a copy).- Parameters:
rotamers
- Array of rotamers.residues
- Array of residues.useFullAMOEBAEnergy
- If true, re-evaluate AMOEBA energy for each conformation.rotamerOptimization
- RotamerOptimization instance.
-
-
Method Details
-
revertStep
public void revertStep()Description copied from interface:MetropolisMC
If possible, reverts the last successful Monte Carlo step taken. -
currentEnergy
protected double currentEnergy()If useFullAMOEBAEnergy is set to true, explicitly evaluates energy, else computes energy from the rotamer energy matrices.- Specified by:
currentEnergy
in classBoltzmannMC
- Returns:
- Energy at the current state
-
storeState
protected void storeState()Description copied from class:BoltzmannMC
Store the state for reverting a move. Must be properly implemented for revertStep() to function properly; otherwise, the implementation of revertStep() should throw an OperationNotSupportedException.- Specified by:
storeState
in classBoltzmannMC
-