| 3399 | typename U |
| 3400 | > |
| 3401 | double find_max_bobyqa ( |
| 3402 | const funct& f, |
| 3403 | T& x, |
| 3404 | long npt, |
| 3405 | const U& x_lower, |
| 3406 | const U& x_upper, |
| 3407 | const double rho_begin, |
| 3408 | const double rho_end, |
| 3409 | const long max_f_evals |
| 3410 | ) |
| 3411 | { |
| 3412 | // The starting point (i.e. x) must be a column vector. |
| 3413 | COMPILE_TIME_ASSERT(T::NC <= 1); |
| 3414 | |
| 3415 | return -find_min_bobyqa(negate_function(f), x, npt, x_lower, x_upper, rho_begin, rho_end, max_f_evals); |
| 3416 | } |
| 3417 | |
| 3418 | // ---------------------------------------------------------------------------------------- |
| 3419 |