test_problem_builder

desdeo_problem.testproblems.test_problem_builder(name, n_of_variables=None, n_of_objectives=None)[source]

Build test problems. Currently supported: ZDT1-4, ZDT6, and DTLZ1-7.

Parameters:
  • name (str) – Name of the problem in all caps. For example: “ZDT1”, “DTLZ4”, etc.

  • n_of_variables (int, optional) – Number of variables. Required for DTLZ problems, but can be skipped for ZDT problems as they only support one variable value.

  • n_of_objectives (int, optional) – Required for DTLZ problems, but can be skipped for ZDT problems as they only support one variable value.

Raises:

ProblemError – When one of many issues occur while building the MOProblem instance.

Returns:

The test problem object

Return type:

MOProblem