pub struct Suite { /* private fields */ }
Expand description

A COCO suite

Implementations

Instantiates the specified COCO suite.

suite_instance

A string used for defining the suite instances. Two ways are supported:

  • “year: YEAR”, where YEAR is the year of the BBOB workshop, includes the instances (to be) used in that year’s workshop;
  • “instances: VALUES”, where VALUES are instance numbers from 1 on written as a comma-separated list or a range m-n.
suite_options

A string of pairs “key: value” used to filter the suite (especially useful for parallelizing the experiments). Supported options:

  • “dimensions: LIST”, where LIST is the list of dimensions to keep in the suite (range-style syntax is not allowed here),
  • “dimension_indices: VALUES”, where VALUES is a list or a range of dimension indices (starting from 1) to keep in the suite, and
  • “function_indices: VALUES”, where VALUES is a list or a range of function indices (starting from 1) to keep in the suite, and
  • “instance_indices: VALUES”, where VALUES is a list or a range of instance indices (starting from 1) to keep in the suite.

Returns the next problem or None when the suite completed.

Returns the problem for the given function, dimension and instance.

While a suite can contain multiple problems with equal function, dimension and instance, this function always returns the first problem in the suite with the given function, dimension and instance values. If the given values don’t correspond to a problem, the function returns None.

Returns the total number of problems in the suite.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.