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

#include <NelderMeadTestFunctions.hpp>

Inheritance diagram for Unfit::UnitTests::Infinity2D:
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 is used to unit-test the case of invalid outside contraction.

Member Function Documentation

◆ operator()()

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

Here we are minimising x+y for 0.9<x<2.1 and 0.9<y<2.1. Outside this the cost function is constant except for a hole in the domain at (1.25,0.5). We can use this geometry to first force an outside contract and then force the outside contract to land in the hole and therefore test we get the correct response to an outside contract failure (a shrink).

Parameters:

Parameters
x(input) vector containing coordinates of x (2D)
Returns
cost as a vector (3D)

Implements Unfit::GenericCostFunction.


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