Search in sources :

Example 1 with RosenbluthCBMC

use of ffx.algorithms.mc.RosenbluthCBMC in project ffx by mjschnie.

the class PhMD method tryCBMCStep.

private boolean tryCBMCStep(MultiResidue targetMulti) {
    if (CAUTIOUS) {
        throw new UnsupportedOperationException();
    }
    List<Residue> targets = new ArrayList<>();
    targets.add(targetMulti.getActive());
    // cost still scales with this, unfortunately
    int trialSetSize = 5;
    // irrelevant for manual step call
    int mcFrequency = 1;
    boolean writeSnapshots = false;
    System.setProperty("cbmc-type", "CHEAP");
    RosenbluthCBMC cbmc = new RosenbluthCBMC(mola, mola.getPotentialEnergy(), null, targets, mcFrequency, trialSetSize, writeSnapshots);
    boolean accepted = cbmc.cbmcStep();
    if (config.logTimings) {
        long took = System.nanoTime() - startTime;
        logger.info(String.format(" CBMC time: %1.3f", took * NS_TO_SEC));
    }
    return accepted;
}
Also used : RosenbluthCBMC(ffx.algorithms.mc.RosenbluthCBMC) TitrationUtils.inactivateResidue(ffx.potential.extended.TitrationUtils.inactivateResidue) MultiResidue(ffx.potential.bonded.MultiResidue) Residue(ffx.potential.bonded.Residue) ArrayList(java.util.ArrayList)

Aggregations

RosenbluthCBMC (ffx.algorithms.mc.RosenbluthCBMC)1 MultiResidue (ffx.potential.bonded.MultiResidue)1 Residue (ffx.potential.bonded.Residue)1 TitrationUtils.inactivateResidue (ffx.potential.extended.TitrationUtils.inactivateResidue)1 ArrayList (java.util.ArrayList)1