/** * @brief Uses the raw function to evaluate the COCO problem. */ static void f_katsuura_evaluate(coco_problem_t *problem, const double *x, double *y) { assert(problem->number_of_objectives == 1); y[0] = f_katsuura_raw(x, problem->number_of_variables); assert(y[0] + 1e-13 >= problem->best_value[0]); }
static void f_katsuura_evaluate(coco_problem_t *self, const double *x, double *y) { assert(self->number_of_objectives == 1); y[0] = f_katsuura_raw(x, self->number_of_variables); }