Test functions
Module that includes three simple test function classes that can be used for validation and testing of the methodology
- class topsearch.potentials.test_functions.Camelback
Description
Six-hump camel function: sfu.ca/~ssurjano/camel6.html
- function(position: NDArray[Any, Any]) float
Return function evaluated at position
- gradient(position: NDArray[Any, Any]) NDArray[Any, Any]
Return gradient vector evaluated at position
- hessian(position: NDArray[Any, Any]) NDArray[Any, Any]
Construct the 2x2 Hessian matrix of second derivatives
- class topsearch.potentials.test_functions.Quadratic
Description
Simple quadratic centered at (0, 0, 0, … )
- function(position: NDArray[Any, Any]) float
Return the quadratic function value
- class topsearch.potentials.test_functions.Schwefel
Description
Schwefel function: https://www.sfu.ca/~ssurjano/schwef.html
- function(position: NDArray[Any, Any]) NDArray[Any, Any]
Returns the Schwefel function evaluated at position