IntegerState#

class ioh.iohcpp.IntegerState(self: ioh.iohcpp.IntegerState, initial: ioh.iohcpp.IntegerSolution)#

Bases: pybind11_object

A state of a problem. Contains metrics such as the number of evaluations, and the current best value.

Parameters:

initial (Solution) – an object to initialize the state, which contains a placeholder for a solution to an optimization problem.

Attributes Summary

current

The last-evaluated solution.

current_best

The current best-so-far solution.

current_best_internal

The internal representation of the best so far solution.

current_internal

The internal representation of the last-evaluated solution.

evaluations

The number of times the problem has been evaluated so far.

has_improved

Whether the last call to problem has caused global improvement.

optimum_found

Boolean value indicating whether the optimum of a given problem has been found.

y_unconstrained

The current unconstrained value.

y_unconstrained_best

The current best unconstrained value.

Attributes Documentation

current#

The last-evaluated solution.

current_best#

The current best-so-far solution.

current_best_internal#

The internal representation of the best so far solution. See current_internal for a short explanation on the meaning of ‘internal’

current_internal#

The internal representation of the last-evaluated solution. Note that, for a given problem instance, the input search point will be transformed with an automorphism and after evaluating the transformed point, the resulting objective value will also be transformed with another automorphism in the objective space. Such interal information are stored in this attribute.

evaluations#

The number of times the problem has been evaluated so far.

has_improved#

Whether the last call to problem has caused global improvement.

optimum_found#

Boolean value indicating whether the optimum of a given problem has been found.

y_unconstrained#

The current unconstrained value.

y_unconstrained_best#

The current best unconstrained value.