MetaData

class ioh.iohcpp.MetaData(self, problem_id: int, instance: int, name: str, n_variables: int, optimization_type: ioh.iohcpp.OptimizationType, final_target: float = 1e-08, fixed_dimension: bool = False, fixed_instance: bool = False)

Bases: object

Problem meta data. Contains static information about problems, such as their name and id.

Parameters:
  • problem_id (int) – The id of the problem

  • instance (int) – The instance of the problem

  • name (str) – The name of the problem

  • n_variables (int) – The problem dimensionality

  • optimization_type (OptimizationType) – Enum value, denoting if this is a maximization or minimization problem

  • final_target (float) – The final target of the function

  • fixed_dimension (bool) – Whether the problem has this dimension whatever dimension was requested

  • fixed_instance (bool) – Whether the problem has this instance whatever instance was requested

Attributes Summary

final_target

(self) -> float

fixed_dimension

Whether the problem has one dimension, n_variables, whatever dimension was requested (the CEC2013 and graph problems)

fixed_instance

Whether the problem has one instance, instance, whatever instance was requested (the CEC2013 and graph problems)

instance

The instance number of the current problem

n_variables

The number of variables (dimension) of the current problem

name

The name of the current problem

optimization_type

The type of problem (maximization or minimization)

problem_id

The id of the problem within its suite

Attributes Documentation

final_target

(self) -> float

fixed_dimension

Whether the problem has one dimension, n_variables, whatever dimension was requested (the CEC2013 and graph problems)

fixed_instance

Whether the problem has one instance, instance, whatever instance was requested (the CEC2013 and graph problems)

instance

The instance number of the current problem

n_variables

The number of variables (dimension) of the current problem

name

The name of the current problem

optimization_type

The type of problem (maximization or minimization)

problem_id

The id of the problem within its suite