MCPcopy Create free account
hub / github.com/davisking/dlib / neg_rosen

Function neg_rosen

dlib/test/optimization.cpp:100–104  ·  view source on GitHub ↗

negative of Rosenbrock's function. minimum at (1,1)

Source from the content-addressed store, hash-verified

98
99 // negative of Rosenbrock's function. minimum at (1,1)
100 double neg_rosen ( const matrix<double,2,1>& x)
101 {
102 ++total_count;
103 return -(100*pow(x(1) - x(0)*x(0),2) + pow(1 - x(0),2));
104 }
105
106 matrix<double,2,1> der_neg_rosen ( const matrix<double,2,1>& x)
107 {

Callers 3

test_neg_rosenFunction · 0.85
optimization_testFunction · 0.85

Calls 1

xFunction · 0.85

Tested by

no test coverage detected