8 auto sq = [](
auto x) {
return x *
x; };
10 C.lowerbound << -1, -1;
11 C.upperbound << 4, 1.8;
18 return sq(sq(
x(0)) +
x(1) - 11) + sq(
x(0) + sq(
x(1)) - 7);
22 2 * (2 *
x(0) * (sq(
x(0)) +
x(1) - 11) +
x(0) + sq(
x(1)) - 7);
24 2 * (sq(
x(0)) + 2 *
x(1) * (
x(0) + sq(
x(1)) - 7) +
x(1) - 11);
30 real_t H00 = 4 * (sq(
x(0)) +
x(1) - 11) + 8 * sq(
x(0)) + 2;
33 real_t H11 = 4 * (
x(0) + sq(
x(1)) - 7) + 8 * sq(
x(1)) + 2;
34 Hv(0) = H00 *
v(0) + H01 *
v(1);
35 Hv(1) = H10 *
v(0) + H11 *
v(1);
38 H(0, 0) = 4 * (sq(
x(0)) +
x(1) - 11) + 8 * sq(
x(0)) + 2;
39 H(0, 1) = 4 *
x(0) + 4 *
x(1);
40 H(1, 0) = 4 *
x(0) + 4 *
x(1);
41 H(1, 1) = 4 * (
x(0) + sq(
x(1)) - 7) + 8 * sq(
x(1)) + 2;
Problem himmelblau_problem()
Eigen::Ref< const vec > crvec
Default type for immutable references to vectors.
realvec vec
Default type for vectors.
Eigen::Ref< mat > rmat
Default type for mutable references to matrices.
double real_t
Default floating point type.
Eigen::Ref< vec > rvec
Default type for mutable references to vectors.
Problem description for minimization problems.