18 # ifndef __POWELLS_METHOD__H 19 # define __POWELLS_METHOD__H 47 void search(
double a,
double b,
double& s,
double& f_val,
double tol,
Matrix_real x);
void search(double a, double b, double &s, double &f_val, double tol, Matrix_real x)
double(* costfnc)(Matrix_real x, void *params)
function pointer to evaluate the cost function and its gradient vector
Powells_method(double(*f_pointer)(Matrix_real, void *), void *meta_data_in)
Constructor of the class.
void bracket(double x1, double h, double &a, double &b, Matrix_real x)
double Start_Optimization(Matrix_real &x, long max_iter)
~Powells_method()
Destructor of the class.
A class implementing the Powells-algorithm as seen in: https://academic.oup.com/comjnl/article-abstra...
double direction(double s, Matrix_real x)
void * meta_data
additional data needed to evaluate the cost function
int variable_num
number of independent variables in the problem
Class to store data of complex arrays and its properties.