Post by Creator » Sat Oct 21, 2017, 23:07
As I understand now, the values of the objective function may be less then 0, and you need to find its maximal value. I think, that your idea of shifting the values of the objective function will work.
If it is possible to roughly estimate the theoretical boundaries of the objective function, e.g. [f_min; f_max], f_min will be some negative number -Delta. Add this number Delta to all the values of the objective function:
Code: Select all
CPowell::getParams(kappa + Delta),
thus, the boundaries of the objective function will be positive: [0; f_max + Delta]. Now you will be able to find the maximum value.
As I understand now, the values of the objective function may be less then 0, and you need to find its maximal value. I think, that your idea of shifting the values of the objective function will work.
If it is possible to roughly estimate the theoretical boundaries of the objective function, e.g. [f_min; f_max], f_min will be some negative number -Delta. Add this number Delta to all the values of the objective function:
[code] CPowell::getParams(kappa + Delta),[/code]
thus, the boundaries of the objective function will be positive: [0; f_max + Delta]. Now you will be able to find the maximum value.