123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- #ifndef _COSTFUNCTION_NDIM_2NDORDER_H_
- #define _COSTFUNCTION_NDIM_2NDORDER_H_
- #include "core/optimization/blackbox/CostFunction.h"
- namespace OPTIMIZATION
- {
- class CostFunction_ndim_2ndOrder : public CostFunction
- {
- public:
- typedef CostFunction SuperClass;
- typedef SuperClass::matrix_type matrix_type;
-
-
- CostFunction_ndim_2ndOrder();
-
- CostFunction_ndim_2ndOrder(unsigned int dim);
-
-
- CostFunction_ndim_2ndOrder(const CostFunction_ndim_2ndOrder &func);
-
- CostFunction_ndim_2ndOrder &operator=(const CostFunction_ndim_2ndOrder & func);
-
- ~CostFunction_ndim_2ndOrder();
-
- void init();
-
- int setAbc(const matrix_type & A,const matrix_type &b, double c);
-
- double evaluate(const matrix_type & parameter);
-
- const matrix_type getAnalyticGradient(const matrix_type ¶meter);
-
- protected:
-
- matrix_type m_A;
-
- matrix_type m_bt;
-
- double m_c;
- };
- }
- #endif
|