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

#include <NelderMeadTestFunctions.hpp>

Inheritance diagram for Unfit::UnitTests::AlwaysInfinite:
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

This function gives an infinite cost for all values of x.

Member Function Documentation

◆ operator()()

std::vector<double> Unfit::UnitTests::AlwaysInfinite::operator() ( const std::vector< double > &  x)
inlinevirtual

We overload the operator as is required in GenericCostFunction to calculate the cost of the AlwaysInfinite function as defined above.

Behaviour: cost = y = 1000*double_max

Intended use : AlwaysInfinite Func; cost = Func(const std::vector<double> x);

Parameters:

Parameters
x(input) vector containing values of the variable
Returns
cost

Implements Unfit::GenericCostFunction.


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