pysolver_view.roots.problems.extended_rosenbrock module

pysolver_view.roots.problems.extended_rosenbrock module#

class pysolver_view.roots.problems.extended_rosenbrock.ExtendedRosenbrockProblem(n=10)[source]#

Bases: BenchmarkProblem

Block extension of MINPACK problem 1; each two-variable block is coupled.

f[2k] = 1 - x[2k], f[2k+1] = 10*(x[2k+1] - x[2k]**2). Standard start repeats (-1.2, 1); the root is the all-ones vector.

gradient(x)[source]#

Return the analytic n-by-n Jacobian with one coupled 2-by-2 block per variable pair.

residual(x)[source]#

Return n Rosenbrock equations, interleaving coordinate and curved-valley residuals.