|
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 () |
This function is used to unit-test the case of invalid outside contraction.
|
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:
| x | (input) vector containing coordinates of x (2D) |
Implements Unfit::GenericCostFunction.
1.8.13