ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/MinimizerBase.hpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/MinimizerBase.hpp (file contents):
Revision 1002 by tim, Mon Feb 2 20:29:41 2004 UTC vs.
Revision 1010 by tim, Tue Feb 3 20:43:08 2004 UTC

# Line 5 | Line 5
5   #include <vector>
6  
7   #include "MinimizerParameterSet.hpp"
8 + #include "NLModel.hpp"
9  
10   #define MINSTATUS_ERROR -1
11   #define MINSTATUS_CONVERGE 0
# Line 28 | Line 29 | class MinimizerBase{
29      virtual bool isSolvable() = 0;
30  
31      // get the final status of minimization
32 <    int getMinimizationStatus() {return minimizationStatus;}
32 >    int getMinimizationStatus() {return minStatus;}
33  
34      // get the name of minimization method
35      const string getName() {return minimizerName;}
# Line 43 | Line 44 | class Minimizer : public MinimizerBase{
44  
45   };
46  
46 class Minimizer : public MinimizerBase{
47
48  public:
49
50    virtual void printMinizerInfo() = 0;
51
52    virtual MinimizerParameterSet* creatParameterSet() = 0;
53    void setMinX(vector<double>& x) { minX = x;}
54    vector<double> getMinX() { return minX;}
55
56    void setPrevMinX(vector<double>& x) { prevMinX = x;}
57    vector<double> getPrevMinX() {return prevMinX;}
58
59    int getCurrentIteration() {return currentIter;}
60
61  protected:
62    
63    MinimizerParameterSet* paramSet;    
64    int currentIter;
65
66    // Coordinates yielding the minimum value of the function.
67    vector<double> minX;
68
69   // Vector holding the previous point.
70    vector<double> prevMinX;
71 };
47   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines