Changeset b2acca for src/Actions


Ignore:
Timestamp:
Apr 10, 2018, 6:43:11 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization_continued, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, PythonUI_with_named_parameters, StoppableMakroAction, TremoloParser_IncreasedPrecision
Children:
216840
Parents:
ecfcf6
git-author:
Frederik Heber <frederik.heber@…> (06/20/17 20:26:12)
git-committer:
Frederik Heber <frederik.heber@…> (04/10/18 06:43:11)
Message:

ForceAnnealing can now be used either atom- or bond-centered.

  • new keyword "use-bondgraph" to use either case.
  • atom is old annealing method, bond graph is new annealing method where the bond neighborhood is shifted as well to anneal to force projected onto the BondVector.
  • In the first step we always use atom-centered annealing where we use the given deltat step width. Afterwards Barzilai-Borwein may then proceed.
  • TESTS: Removed XFAIL from ForceAnnealing regression tests as they work now again.
Location:
src/Actions/MoleculeAction
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/MoleculeAction/ForceAnnealingAction.cpp

    recfcf6 rb2acca  
    128128  // perform optimization step
    129129  LOG(1, "Structural optimization.");
    130   optimizer(CurrentStep, 1);
     130  optimizer(CurrentStep, 1, params.UseBondGraph.get());
    131131  STATUS("Successfully optimized structure by one step.");
    132132
  • src/Actions/MoleculeAction/ForceAnnealingAction.def

    recfcf6 rb2acca  
    1717// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    1818// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
    19 #define paramtypes (boost::filesystem::path)(unsigned int)(bool)(int)(double)
    20 #define paramtokens ("forces-file")("steps")("output-every-step")("max-distance")("damping-factor")
    21 #define paramdescriptions ("file containing")("fixed number of optimization steps to be performed")("whether WorldTime should be increased and output written after every step, useful if optimization might hang")("maximum distance to which bond graph is taken into account")("damping factor for decreasing the shift with bond graph distance from the causing site")
    22 #define paramdefaults (PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(PARAM_DEFAULT("0"))(PARAM_DEFAULT(0))(PARAM_DEFAULT(0.5))
    23 #define paramreferences (forcesfile)(steps)(DoOutput)(MaxDistance)(DampingFactor)
     19#define paramtypes (boost::filesystem::path)(unsigned int)(bool)(int)(double)(bool)
     20#define paramtokens ("forces-file")("steps")("output-every-step")("max-distance")("damping-factor")("use-bondgraph")
     21#define paramdescriptions ("file containing")("fixed number of optimization steps to be performed")("whether WorldTime should be increased and output written after every step, useful if optimization might hang")("maximum distance to which bond graph is taken into account")("damping factor for decreasing the shift with bond graph distance from the causing site")("whether annealing should take place focusing on atoms alone or on the bonds (faster)")
     22#define paramdefaults (PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(PARAM_DEFAULT("0"))(PARAM_DEFAULT(0))(PARAM_DEFAULT(0.5))(PARAM_DEFAULT(0))
     23#define paramreferences (forcesfile)(steps)(DoOutput)(MaxDistance)(DampingFactor)(UseBondGraph)
    2424#define paramvalids \
    2525(DummyValidator< boost::filesystem::path >()) \
     
    2727(DummyValidator<bool>()) \
    2828(DummyValidator< int >()) \
    29 (RangeValidator< double >(0,1))
     29(RangeValidator< double >(0,1)) \
     30(DummyValidator<bool>())
    3031
    3132#define statetypes (std::vector<AtomicInfo>)(std::vector<AtomicInfo>)
Note: See TracChangeset for help on using the changeset viewer.