[mareframe] Annotation of /trunk/paramin-beta/linesearch.h
Annotation of /trunk/paramin-beta/linesearch.h
Parent Directory
| Revision Log
Revision 1 -
(view)
(download)
1 : |
agomez |
1 |
#ifndef linesearch_h
|
2 : |
|
|
#define linesearch_h
|
3 : |
|
|
|
4 : |
|
|
#include "paramin.h" |
5 : |
|
|
#include "netinterface.h" |
6 : |
|
|
|
7 : |
|
|
class NetInterface;
|
8 : |
|
|
class Condition;
|
9 : |
|
|
|
10 : |
|
|
class LineSearch {
|
11 : |
|
|
protected:
|
12 : |
|
|
int numAlpha;
|
13 : |
|
|
public:
|
14 : |
|
|
LineSearch();
|
15 : |
|
|
virtual ~LineSearch();
|
16 : |
|
|
/**
|
17 : |
|
|
* \brief best function value found in linesearch.
|
18 : |
|
|
*/
|
19 : |
|
|
double f;
|
20 : |
|
|
/**
|
21 : |
|
|
* \brief best point found in linesearch.
|
22 : |
|
|
*/
|
23 : |
|
|
DoubleVector x;
|
24 : |
|
|
//int fail;
|
25 : |
|
|
double getBestF();
|
26 : |
|
|
const DoubleVector& getBestX();
|
27 : |
|
|
virtual double getAlpha() = 0;
|
28 : |
|
|
virtual int computeConditionFunction() = 0;
|
29 : |
|
|
};
|
30 : |
|
|
|
31 : |
|
|
|
32 : |
|
|
#endif
|
|