|
Unfit
3.1.1
Data fitting and optimization software
|
#include <NelderMeadTestFunctions.hpp>
Public Member Functions | |
| std::vector< double > | operator() (const std::vector< double > &x) |
Public Member Functions inherited from Unfit::GenericCostFunction | |
| virtual | ~GenericCostFunction () |
The PowellSingularFunction is defined as
(x[0]+10x[1])^2 + 5(x[2]-x[3])^2 + (x[1]-2x[2])^4 + 10(x[0]-x[3])^4
Number of dimensions = 4 The global minimum is: (0, 0, 0, 0)T Initial guess: (3, -1, 0, 1)T
Reference: folk.uib.no/ssu029/Pdf_file/Fletcher77.pdf
|
inlinevirtual |
We overload the operator as is required in GenericCostFunction to calculate the cost of the function.
Behaviour: cost = (x[0]+10x[1])^2 + 5(x[2]-x[3])^2 + (x[1]-2x[2])^4 + 10(x[0]-x[3])^4
Intended use : PowellSingular Func; cost = Func(const std::vector<double> x);
Parameters:
| x | (input) vector containing coordinates of x and y |
Implements Unfit::GenericCostFunction.
1.8.13