|
| errc_t | solve (UnaryScalarFunc &func, double min, double max, double &result, double *funcValue=nullptr) override |
| |
|
| UnaryOptimizer () |
| |
| | UnaryOptimizer (double relTol, double absTol, int maxIter) |
| |
| | UnaryOptimizer (double absTol) |
| |
| template<typename Func > |
| std::enable_if<!std::is_base_of< UnaryScalarFunc, typenamestd::remove_pointer< Func >::type >::value, errc_t >::type | solve (Func func, double min, double max, double &result, double *funcValue=nullptr) |
| |
| | UnaryOptimizer (double relTol, double absTol, int maxIter) |
| |
| | UnaryOptimizer (double absTol) |
| |
|
double | getRelTol () const |
| |
|
double | getAbsTol () const |
| |
|
int | getMaxIter () const |
| |
|
void | setRelTol (double relTol) |
| |
|
void | setAbsTol (double absTol) |
| |
|
void | setMaxIter (int maxIter) |
| |
|
const SolverStats & | getStats () const |
| |
| template<typename Func > |
| std::enable_if<!std::is_base_of< UnaryScalarFunc, typenamestd::remove_pointer< Func >::type >::value, errc_t >::type | solve (Func func, double min, double max, double &result, double *funcValue=nullptr) |
| |
| virtual errc_t | solve (UnaryScalarFunc &func, double min, double max, double &result, double *funcValue=nullptr)=0 |
| |
黄金分割法求解器
在单峰区间 [min, max] 内寻找一元函数的极小值点