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

File Contents

# User Rev Content
1 tim 1900 #ifndef MINIMIZERS_MININIZERPARAMETERSET_HPP
2     #define MINIMIZERS_MININIZERPARAMETERSET_HPP
3     #include "brains/SimInfo.hpp"
4 tim 1884 namespace oopse {
5 tim 1826
6     // base class of minimizer's parameter set
7    
8 tim 1884 class MinimizerParameterSet {
9     public:
10 tim 1826
11 tim 1900 MinimizerParameterSet(SimInfo* info);
12 tim 1826
13 tim 1900 void setDefaultParameter();
14 tim 1826
15 tim 1884 void setStepTol(double tol) {
16     stepTol = tol;
17     }
18 tim 1826
19 tim 1884 double getStepTol() {
20     return stepTol;
21     }
22 tim 1826
23 tim 1884 void setStepSize(double size) {
24     stepSize = size;
25     }
26 tim 1826
27 tim 1884 double getStepSize() {
28     return stepSize;
29     }
30 tim 1826
31 tim 1884 void setMaxIteration(int iter) {
32     maxIteration = iter;
33     }
34 tim 1826
35 tim 1884 int getMaxIteration() {
36     return maxIteration;
37     }
38 tim 1826
39 tim 1884 void setFTol(double tol) {
40     fTol = tol;
41     }
42 tim 1826
43 tim 1884 double getFTol() {
44     return fTol;
45     }
46 tim 1826
47 tim 1884 void setGTol(double tol) {
48     gTol = tol;
49     }
50 tim 1826
51 tim 1884 double getGTol() {
52     return gTol;
53     }
54 tim 1826
55 tim 1884 void setLineSearchTol(double tol) {
56     lsTol = tol;
57     }
58 tim 1826
59 tim 1884 double getLineSearchTol() {
60     return lsTol;
61     }
62 tim 1826
63 tim 1884 void setLineSearchMaxIteration(int iter) {
64     lsMaxIteration = iter;
65     }
66 tim 1826
67 tim 1884 int getLineSearchMaxIteration() {
68     return lsMaxIteration;
69     }
70 tim 1826
71 tim 1884 void setWriteFrq(int frq) {
72     writeFrq = frq;
73     }
74 tim 1826
75 tim 1884 int getWriteFrq() {
76     return writeFrq;
77     }
78 tim 1826
79 tim 1884 protected:
80 tim 1826
81 tim 1884 int maxIteration;
82 tim 1826
83 tim 1884 double stepTol;
84 tim 1826
85 tim 1884 double fTol;
86 tim 1826
87 tim 1884 double gTol;
88 tim 1826
89 tim 1884 double stepSize;
90 tim 1826
91 tim 1884 int lsMaxIteration;
92 tim 1826
93 tim 1884 double lsTol;
94 tim 1826
95 tim 1884 int writeFrq;
96 tim 1826
97 tim 1900 static const double defaultTolerance = 1.0e-8;
98 tim 1826
99     };
100    
101 tim 1884 }
102 tim 1826 #endif

Properties

Name Value
svn:executable *