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

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