test.problem function

Convenience constructor for the test.problem class.

Convenience constructor for the test.problem class.

The method enables creating of objects of class "test.problem"

for a few standard test problems.

test.problem(name, n.test = 100, dim, maxf, objective, lower, upper)

Arguments

  • name: The name of the test problem. Currently supports one of "parabola", "griewank", "rosenbrock", "rastrigin", or "ackley".
  • n.test: The number of tests to perform.
  • dim: Override the default dimension of the problem.
  • maxf: Override the default maximal number of function evaluations for the problem.
  • objective: Override the default objective for the function.
  • lower: Override the default lower bounds for the problem.
  • upper: Override the default upper bounds for the problem.

Returns

An object of class "test.problem".

See Also

test.problem.

Examples

test.problem("rast") test.problem("rast",dim=4,n.test=10) test.problem("grie")
  • Maintainer: Claus Bendtsen
  • License: LGPL-3
  • Last published: 2022-04-12

Useful links