50 value_ = std::pow(x(0) + 10.0 * x(1), 2)
51 + 5.0 * std::pow(x(2) - x(3), 2)
52 + std::pow(x(1) - 2.0 * x(2), 4)
53 + 10.0 * std::pow(x(0) - x(3), 4);
55 grad_(0) = 2.0 * (x(0) + 10.0 * x(1))
56 + 40.0 * std::pow(x(0) - x(3), 3);
57 grad_(1) = 20.0 * (x(0) + 10.0 * x(1))
58 + 4.0 * std::pow(x(1) - 2.0 * x(2), 3);
59 grad_(2) = 10.0 * (x(2) - x(3))
60 - 8.0 * std::pow(x(1) - 2.0 * x(2), 3);
61 grad_(3) = -10.0 * (x(2) - x(3))
62 - 40.0 * std::pow(x(0) - x(3), 3);