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

Function rosen

dlib/test/optimization.cpp:82–86  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

80
81 // Rosenbrock's function. minimum at (1,1)
82 double rosen ( const matrix<double,2,1>& x)
83 {
84 ++total_count;
85 return 100*pow(x(1) - x(0)*x(0),2) + pow(1 - x(0),2);
86 }
87
88 matrix<double,2,1> der_rosen ( const matrix<double,2,1>& x)
89 {

Callers 6

test_find_max_globalFunction · 0.70
test_problemsFunction · 0.70
test_rosenFunction · 0.70
test_bound_solver_rosenFunction · 0.70
test_with_rosenFunction · 0.70

Calls 1

xFunction · 0.85

Tested by

no test coverage detected