5#ifndef OPTIMIST_TESTSET_ROSENBROCK_HH
6#define OPTIMIST_TESTSET_ROSENBROCK_HH
32 template <
typename Vector, Integer N>
47 for (
Integer i{0}; i < N; i += 2) {
60 return "Rosenbrock<" + std::to_string(N) +
">";
64 for (
Integer i{0}; i < N; i += 2) {
65 F(i) = 10 * (x(i + 1) - x(i) * x(i));
72 for (
Integer i{0}; i < N; i += 2) {
90 template <
typename Vector>
93 template <
typename Vector>
96 template <
typename Vector>
99 template <
typename Vector>
102 template <
typename Vector>
Helper base class for nonlinear systems written once in terms of dense vectors (square by default).
Definition DenseFunction.hh:151
void add_guess(const Dense &x)
Definition DenseFunction.hh:225
Utils::DenseMatrix< Vector > DenseMatrix
Definition DenseFunction.hh:156
typename Vector::Scalar Scalar
Definition DenseFunction.hh:154
Utils::DenseVector< Vector > Dense
Definition DenseFunction.hh:155
void add_solution(const Dense &x)
Definition DenseFunction.hh:218
Class container for the extended Rosenbrock function.
Definition Rosenbrock.hh:35
void residual(const Dense &x, Dense &F) const
Definition Rosenbrock.hh:63
constexpr std::string name_impl() const
Definition Rosenbrock.hh:59
void hessian(const Dense &x, const Integer i, DenseMatrix &H) const
Definition Rosenbrock.hh:79
Rosenbrock()
Definition Rosenbrock.hh:45
void jacobian(const Dense &x, DenseMatrix &J) const
Definition Rosenbrock.hh:70
DenseSystemFunction< Vector, N, Rosenbrock< Vector, N > > Base
Definition Rosenbrock.hh:37
Rosenbrock< Vector, 6 > Rosenbrock6
Definition Rosenbrock.hh:97
Rosenbrock< Vector, 2 > Rosenbrock2
Definition Rosenbrock.hh:91
Rosenbrock< Vector, 10 > Rosenbrock10
Definition Rosenbrock.hh:103
Rosenbrock< Vector, 8 > Rosenbrock8
Definition Rosenbrock.hh:100
Rosenbrock< Vector, 4 > Rosenbrock4
Definition Rosenbrock.hh:94
Namespace for the Optimist library.
Definition Optimist.hh:90
OPTIMIST_DEFAULT_INTEGER_TYPE Integer
The Integer type as used for the API.
Definition Optimist.hh:98