pub struct Problem<'suite> { /* private fields */ }
Expand description

A specific problem instance.

Instances can be optained using Suite::next_problem and Suite::problem_by_function_dimension_instance.

Implementations

Returns the ID of the problem.

For the toy suite this is

  • {function-name}_d{dimension}

For bbob it is

  • bbob_f{function-index}_i{instance}_d{dimension}

Returns the name of the problem.

Returns the index of the problem.

Returns the dimension index of the problem.

Returns the instance of the problem.

Evaluates the problem at x and returns the result in y.

The length of x must match Problem::dimension and the length of y must match Problem::number_of_objectives.

Evaluates the problem constraints in point x and save the result in y.

The length of x must match Problem::dimension and the length of y must match Problem::number_of_constraints.

Returns true if a previous evaluation hit the target value.

Returns the dimension of the problem.

Returns the number of objectives of the problem.

Returns the number of constraints of the problem.

Returns the numver of integer variables of the problem.

The first n variables will be integers then. Returns 0 if all variables are continuous.

Returns the upper and lover bounds of the problem.

Returns how often this instance has been evaluated.

Returns how often this instances constrants have been evaluated.

Writes a feasible initial solution into x.

If the problem does not provide a specific solution, it will be the center of the problem’s region of interest.

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.