Skip to content

Commit

Permalink
Pinker cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
olafmersmann committed Oct 24, 2023
1 parent c382c87 commit a81198b
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion code-experiments/src/suite_bbob.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static coco_suite_t *suite_bbob_initialize(void) {
const size_t num_dimensions = sizeof(dimensions) / sizeof(dimensions[0]);

/* IMPORTANT: Make sure to change the default instance for every new workshop! */
suite = coco_suite_allocate("bbob", 24, 6, dimensions, "year: 2018", 1);
suite = coco_suite_allocate("bbob", 24, num_dimensions, dimensions, "year: 2018", 1);

return suite;
}
Expand Down
2 changes: 1 addition & 1 deletion code-experiments/src/suite_biobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static coco_suite_t *suite_biobj_initialize(const char *suite_name) {
const size_t num_dimensions = sizeof(dimensions) / sizeof(dimensions[0]);

if (strcmp(suite_name, "bbob-biobj") == 0) {
suite = coco_suite_allocate("bbob-biobj", 55, 6, num_dimensions, "instances: 1-15", 1);
suite = coco_suite_allocate("bbob-biobj", 55, num_dimensions, dimensions, "instances: 1-15", 1);
} else if (strcmp(suite_name, "bbob-biobj-ext") == 0) {
suite = coco_suite_allocate("bbob-biobj-ext", 55+37, num_dimensions, dimensions, "instances: 1-15", 1);
} else {
Expand Down
2 changes: 1 addition & 1 deletion code-experiments/src/suite_toy.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static coco_suite_t *suite_toy_initialize(void) {
const size_t dimensions[] = { 2, 3, 5, 10, 20 };
const size_t num_dimensions = sizeof(dimensions) / sizeof(dimensions[0]);

suite = coco_suite_allocate("toy", 6, 3, dimensions, "instances: 1", 1);
suite = coco_suite_allocate("toy", 6, num_dimensions, dimensions, "instances: 1", 1);

return suite;
}
Expand Down
1 change: 1 addition & 0 deletions code-experiments/src/transform_vars_oscillate.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ static void transform_vars_oscillate_evaluate_constraint(coco_problem_t *problem
}

data = (transform_vars_oscillate_data_t *) coco_problem_transformed_get_data(problem);
oscillated_x = data->oscillated_x; /* short cut to make code more readable */
inner_problem = coco_problem_transformed_get_inner_problem(problem);

for (i = 0; i < problem->number_of_variables; ++i) {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit a81198b

Please sign in to comment.