123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- #ifndef _LINE_SEARCHER_H_
- #define _LINE_SEARCHER_H_
- #include "core/optimization/blackbox/CostFunction.h"
- #include "core/optimization/blackbox/OptLogBase.h"
- #include "core/optimization/blackbox/Definitions_core_opt.h"
- #include "optimization/InequalityConstraints.h"
- #include "optimization/EqualityConstraints.h"
- namespace OPTIMIZATION
- {
-
- class LineSearcher
- {
- public:
- typedef OPTIMIZATION::matrix_type matrix_type;
-
- LineSearcher();
-
- LineSearcher(CostFunction *costFunc, OptLogBase *loger);
-
- LineSearcher( const LineSearcher &lin);
-
-
- LineSearcher & operator=(const LineSearcher &lin);
-
- virtual ~LineSearcher();
-
- inline void setMaximize(bool maximize){m_maximize = maximize;};
-
- bool setX0(const matrix_type & x0);
-
- bool setH0(const matrix_type & H0);
-
- virtual double optimize() = 0;
-
-
- bool setConstraints(InequalityConstraints *ineq,EqualityConstraints *eq);
-
- double evaluateSub(double lambda);
-
- bool setPP(double pp);
-
- inline void setVerbose(bool verb){m_verbose = verb;};
- protected:
-
- bool m_maximize;
-
-
- CostFunction *m_pFunc;
-
- unsigned int m_numIneq;
-
- InequalityConstraints *m_pIneq;
-
- unsigned int m_numEq;
-
- EqualityConstraints *m_pEq;
-
- double m_PP;
-
-
- OptLogBase *m_pLoger;
-
- bool m_verbose;
- };
- }
- #endif
|