integer

Classes

StarDiscrepancy

class StarDiscrepancy : public ioh::problem::SingleObjectiveProblem<int>

Public Functions

inline StarDiscrepancy(const int problem_id, const int instance, const int n_variables, const std::string &name, const Grid &grid)

Construct a new (integer) StarDiscrepancy object.

Parameters:
  • problem_id – The id of the problem

  • instance – The instance of the problem, used as seed for the sampler

  • n_variables – the dimension of the problem

  • name – the name of the problem

  • grid – the point grid

inline Grid get_grid() const

Accessor for grid.

Public Static Functions

static inline std::vector<RegistryEntry<StarDiscrepancy>> registry_entries()

The registry entries (see registry_entries_of): 30 problems with ids 30-59, which sample their points with the Uniform, Sobol and Halton samplers.

Protected Functions

inline double evaluate(const std::vector<int> &x) override

Private Members

Grid grid

The sampled points.

Grid internal_grid

Same a grid, but with last element a vector of all ones.

std::vector<double> dx

Preallocated double representation of the added sample.