RealSolution¶
- class ioh.iohcpp.RealSolution(self, x: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], y: float)¶
- class ioh.iohcpp.RealSolution(self, x: collections.abc.Sequence[float], y: float)
Bases:
objectOverloaded function.
__init__(self, x: ndarray[dtype=float64, shape=(*), order='C', device='cpu', writable=False], y: float) -> None__init__(self, x: collections.abc.Sequence[float], y: float) -> NoneA 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
a numpy array that is a view of the solution's values (writing to it changes the solution).
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)