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

# Content
1 #ifndef _MINIMIZERBASE_H_
2 #define _MINIMIZERBASE_H_
3
4 class MinimizerBase{
5 public:
6
7 virtual void Init() = 0;
8 virtual void Minimize() = 0;
9 virtual int step() = 0;
10 virtual int testConvergence() = 0;
11
12
13 virtual bool isSolvable() = 0;
14
15 void double setFTol(double tol);
16 void double setGradTol(double gradTol);
17
18 void setStepSize(double step) { stepSize = step;}
19 double getStepSize() { return stepSize;}
20
21 void setMaxStep(double step) { maxStep = step;}
22 double getMaxStep() {return maxStep;}
23
24 const string& getMethodName() {return methodName;}
25 void setMethodName(const string& name) { methodName = name;}
26
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 *