IntegerSolution

class ioh.iohcpp.IntegerSolution(self, x: ndarray[shape=(*), order='C', device='cpu'], y: float)
class ioh.iohcpp.IntegerSolution(self, x: collections.abc.Sequence[int], y: float)

Bases: object

Overloaded function.

  1. __init__(self, x: ndarray[shape=(*), order='C', device='cpu'], y: float) -> None

  2. __init__(self, x: collections.abc.Sequence[int], y: float) -> None

    A Solution object, which is a container for a search point and its corresponding fitness value.

    x: list

    the search point in a search space, e.g., R^d or {0,1}^d

    y: float

    the corresponding objective value of x, i.e., y = f(x)

Attributes Summary

x

a numpy array that is a view of the solution's values (writing to it changes the solution).

y

The corresponding objective value of x, i.e., y = f(x)

Attributes Documentation

x

a numpy array that is a view of the solution’s values (writing to it changes the solution). Assigning x replaces the values; read x again after assigning one of another length, as an array read before may no longer be valid.

Type:

The search point in a search space, e.g., R^d or {0,1}^d

y

The corresponding objective value of x, i.e., y = f(x)