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

File Contents

# Content
1 #ifndef _CONJUGATEMINIMIZER_H_
2 #define _CONJUGATEMINIMIZER_H_
3
4 #include "MinimizerBase.hpp"
5
6 class ConjugateMinimizerBase : public MinimizeBase{
7 public:
8 bool isSolvable();
9 virtual void Init() = 0;
10 virtual void Minimize() = 0;
11 virtual int step() = 0;
12 virtual int testConvergence() = 0;
13 virtual void reset();
14 void calcDirection(vector<double>& direction) = 0;
15
16 protected:
17 NLModel0 * model;
18 vector<double> preGrad;
19 };
20
21 class FRConjugate : public ConjugateMinimizerBase{
22 public:
23 void calcDirection(vector<double>& direction);
24
25 };
26
27 class PRConjugate : public ConjugateMinimizerBase{
28 public:
29 void calcDirection(vector<double>& direction);
30 };
31
32 #endif