get_problem#
- ioh.get_problem(fid: int | str, instance: int = 1, dimension: int = 5, problem_class: ProblemClass = ProblemClass.REAL) RealSingleObjective | IntegerSingleObjective #
Instantiate a problem based on its function ID, dimension, instance and suite
- Parameters:
fid (int or str) – The function ID of the problem in the suite, or the name of the function as string
instance (int = 1) – The instance ID of the problem
dimension (int = 5) – The dimension (number of variables) of the problem
problem_class (ProblemClass = ProblemClass.REAL) – The type of the problem.