Unfit  3.1.1
Data fitting and optimization software
Public Member Functions | List of all members
Unfit::UnitTests::PowellSingular Class Reference

#include <NelderMeadTestFunctions.hpp>

Inheritance diagram for Unfit::UnitTests::PowellSingular:
Unfit::GenericCostFunction

Public Member Functions

std::vector< double > operator() (const std::vector< double > &x)
 
- Public Member Functions inherited from Unfit::GenericCostFunction
virtual ~GenericCostFunction ()
 

Detailed Description

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

Member Function Documentation

◆ operator()()

std::vector<double> Unfit::UnitTests::PowellSingular::operator() ( const std::vector< double > &  x)
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:

Parameters
x(input) vector containing coordinates of x and y
Returns
cost

Implements Unfit::GenericCostFunction.


The documentation for this class was generated from the following file: