ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/MinimizerBase.hpp
Revision: 987
Committed: Tue Jan 27 19:15:20 2004 UTC (20 years, 5 months ago) by tim
File size: 814 byte(s)
Log Message:
revision of constraint for Nonlinear Optimization Model

File Contents

# User Rev Content
1 tim 970 #ifndef _MINIMIZERBASE_H_
2     #define _MINIMIZERBASE_H_
3    
4     class MinimizerBase{
5     public:
6    
7 tim 987 virtual void Init() = 0;
8 tim 970 virtual void Minimize() = 0;
9     virtual int step() = 0;
10 tim 987 virtual int testConvergence() = 0;
11    
12 tim 970
13     virtual bool isSolvable() = 0;
14    
15     void double setFTol(double tol);
16     void double setGradTol(double gradTol);
17    
18 tim 975 void setStepSize(double step) { stepSize = step;}
19     double getStepSize() { return stepSize;}
20 tim 970
21 tim 975 void setMaxStep(double step) { maxStep = step;}
22     double getMaxStep() {return maxStep;}
23 tim 970
24 tim 975 const string& getMethodName() {return methodName;}
25     void setMethodName(const string& name) { methodName = name;}
26 tim 970
27     protected:
28    
29     double stepSize;
30     double maxStep;
31     double fTol;
32     double gradTol;
33     string methodName;
34     };
35     #endif

Properties

Name Value
svn:executable *