negative of Rosenbrock's function. minimum at (1,1)
| 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 | { |
no test coverage detected