1 |
< |
/* |
1 |
> |
/* |
2 |
|
* Copyright (c) 2005 The University of Notre Dame. All Rights Reserved. |
3 |
|
* |
4 |
|
* The University of Notre Dame grants you ("Licensee") a |
45 |
|
#include "minimizers/Minimizer.hpp" |
46 |
|
namespace oopse { |
47 |
|
|
48 |
< |
/** |
49 |
< |
* @class CGFamilyMinimizer |
50 |
< |
* Base class of conjugate gradient famlily minimzier |
51 |
< |
*/ |
52 |
< |
class CGFamilyMinimizer : public Minimizer{ |
53 |
< |
public: |
48 |
> |
/** |
49 |
> |
* @class CGFamilyMinimizer |
50 |
> |
* Base class of conjugate gradient famlily minimzier |
51 |
> |
*/ |
52 |
> |
class CGFamilyMinimizer : public Minimizer{ |
53 |
> |
public: |
54 |
|
|
55 |
< |
//check the convergence |
56 |
< |
virtual int checkConvg(); |
55 |
> |
//check the convergence |
56 |
> |
virtual int checkConvg(); |
57 |
|
|
58 |
< |
protected: |
59 |
< |
CGFamilyMinimizer(SimInfo* info); |
58 |
> |
protected: |
59 |
> |
CGFamilyMinimizer(SimInfo* info); |
60 |
|
|
61 |
< |
std::vector<double> direction; |
62 |
< |
std::vector<double> prevX; |
63 |
< |
std::vector<double> prevG; |
64 |
< |
double prevF; |
65 |
< |
double stepSize; |
66 |
< |
}; |
61 |
> |
std::vector<RealType> direction; |
62 |
> |
std::vector<RealType> prevX; |
63 |
> |
std::vector<RealType> prevG; |
64 |
> |
RealType prevF; |
65 |
> |
RealType stepSize; |
66 |
> |
}; |
67 |
|
|
68 |
|
} |
69 |
|
|