StarDiscrepancy#

class ioh.iohcpp.problem.StarDiscrepancy(self: ioh.iohcpp.problem.StarDiscrepancy, instance: int = 1, n_variables: int = 5, n_samples: int = 5, sampler_type: ioh.iohcpp.problem.StarDiscrepancySampler = <StarDiscrepancySampler.UNIFORM: 0>)#

Bases: RealSingleObjective

Attributes Summary

bounds

The bounds of the problem.

constraints

The constraints of the problem.

grid

log_info

meta_data

The static meta-data of the problem containing, e.g., problem id, instance id, and problem's dimensionality

optimum

The optimum and its objective value for a problem instance

problems

state

The current state of the optimization process containing, e.g., the current solution and the number of function evaluated consumed so far

Methods Summary

__call__

Evaluate the problem.

add_constraint

add a constraint

attach_logger

Attach a logger to the problem to allow performance tracking.

create(*args, **kwargs)

Overloaded function.

detach_logger

Remove the specified logger from the problem.

enforce_bounds

remove_constraint

remove a constraint

reset

Reset all state variables of the problem.

Attributes Documentation

bounds#

The bounds of the problem.

constraints#

The constraints of the problem.

grid#
log_info#
meta_data#

The static meta-data of the problem containing, e.g., problem id, instance id, and problem’s dimensionality

optimum#

The optimum and its objective value for a problem instance

problems#
state#

The current state of the optimization process containing, e.g., the current solution and the number of function evaluated consumed so far

Methods Documentation

__call__()#

Evaluate the problem.

Parameters:

x (list) – the search point to evaluate. It must be a 1-dimensional array/list whose length matches search space’s dimensionality

add_constraint()#

add a constraint

attach_logger()#

Attach a logger to the problem to allow performance tracking.

Parameters:

logger (Logger) – A logger-object from the IOHexperimenter logger module.

static create(*args, **kwargs)#

Overloaded function.

  1. create(problem_name: str, instance_id: int, dimension: int) -> ioh.iohcpp.problem.StarDiscrepancy

    Create a problem instance

    problem_name: str

    a string indicating the problem name.

    instance_id: int

    an integer identifier of the problem instance

    dimension: int

    the dimensionality of the search space

  2. create(problem_id: int, instance_id: int, dimension: int) -> ioh.iohcpp.problem.StarDiscrepancy

    Create a problem instance

    problem_name: int

    a string indicating the problem name.

    instance_id: int

    an integer identifier of the problem instance

    dimension: int

    the dimensionality of the search space

detach_logger()#

Remove the specified logger from the problem.

enforce_bounds()#
remove_constraint()#

remove a constraint

reset()#

Reset all state variables of the problem.