ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/minimizers/MinimizerParameterSet.cpp
Revision: 1900
Committed: Tue Jan 4 22:18:06 2005 UTC (19 years, 8 months ago) by tim
File size: 1227 byte(s)
Log Message:
minimizers in progress

File Contents

# User Rev Content
1 tim 1900 #include "minimizers/MinimizerParameterSet.hpp"
2    
3     namespace oopse {
4    
5     MinimizerParameterSet::MinimizerParameterSet(SimInfo* info) {
6     setDefaultParameter();
7    
8     Globals* globals = info->getSimParams();
9    
10     if (globals->haveMinimizer()){
11     setFTol(globals->getMinFTol());
12     }
13    
14     if (globals->haveMinGTol()){
15     setGTol(globals->getMinGTol());
16     }
17    
18     if (globals->haveMinMaxIter()){
19     setMaxIteration(globals->getMinMaxIter());
20     }
21    
22     if (globals->haveMinWriteFrq()){
23     setMaxIteration(globals->getMinMaxIter());
24     }
25    
26     if (globals->haveMinWriteFrq()){
27     setWriteFrq(globals->getMinWriteFrq());
28     }
29    
30     if (globals->haveMinStepSize()){
31     setStepSize(globals->getMinStepSize());
32     }
33    
34     if (globals->haveMinLSMaxIter()){
35     setLineSearchMaxIteration(globals->getMinLSMaxIter());
36     }
37    
38     if (globals->haveMinLSTol()){
39     setLineSearchTol(globals->getMinLSTol());
40     }
41    
42     }
43    
44     void MinimizerParameterSet::setDefaultParameter() {
45     maxIteration = 200;
46     stepSize = 0.01;
47     stepTol = defaultTolerance;
48     fTol = defaultTolerance;
49     gTol = defaultTolerance;
50     writeFrq = maxIteration;
51     lsMaxIteration = 50;
52     lsTol = defaultTolerance;
53     }
54    
55    
56    
57     }

Properties

Name Value
svn:executable *