Changeset 56b4c6 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:
0477b0
Parents:
985d1f
git-author:
Frederik Heber <frederik.heber@…> (05/24/17 09:55:56)
git-committer:
Frederik Heber <frederik.heber@…> (04/10/18 06:43:11)
Message:

Added damping-factor as another option to ForceAnnealing for proper testing of bond graph change effectiveness.

Location:
src/Actions/MoleculeAction
Files:
2 edited

Legend:

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

    r985d1f r56b4c6  
    9494      true,
    9595      params.steps.get(),
    96       params.MaxDistance.get());
     96      params.MaxDistance.get(),
     97      params.DampingFactor.get());
    9798  // parse forces into next step
    9899  if (!params.forcesfile.get().string().empty()) {
  • src/Actions/MoleculeAction/ForceAnnealingAction.def

    r985d1f r56b4c6  
    1212#include "Parameters/Validators/GenericValidators.hpp"
    1313#include "Parameters/Validators/Ops_Validator.hpp"
     14#include "Parameters/Validators/RangeValidator.hpp"
    1415
    1516// i.e. there is an integer with variable name Z that can be found in
    1617// ValueStorage by the token "Z" -> first column: int, Z, "Z"
    1718// "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
    18 #define paramtypes (boost::filesystem::path)(unsigned int)(bool)(int)
    19 #define paramtokens ("forces-file")("steps")("output-every-step")("max-distance")
    20 #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")
    21 #define paramdefaults (PARAM_DEFAULT(""))(NOPARAM_DEFAULT)(PARAM_DEFAULT("0"))(PARAM_DEFAULT(0))
    22 #define paramreferences (forcesfile)(steps)(DoOutput)(MaxDistance)
     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)
    2324#define paramvalids \
    2425(DummyValidator< boost::filesystem::path >()) \
    2526(NotZeroValidator< unsigned int >()) \
    2627(DummyValidator<bool>()) \
    27 (DummyValidator< int >())
     28(DummyValidator< int >()) \
     29(RangeValidator< double >(0,1))
    2830
    2931#define statetypes (std::vector<AtomicInfo>)(std::vector<AtomicInfo>)
Note: See TracChangeset for help on using the changeset viewer.