From 4950eef194551f78213e461d825e0e82c25a9aae Mon Sep 17 00:00:00 2001 From: FMGS666 Date: Thu, 14 Dec 2023 17:49:58 +0100 Subject: [PATCH] removing debugging messages --- code-experiments/src/suite_bbob_noisy_utilities.c | 4 ++-- code-experiments/src/suite_cons_bbob.c | 4 ---- code-experiments/src/transform_obj_uniform_noise.c | 5 +++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/code-experiments/src/suite_bbob_noisy_utilities.c b/code-experiments/src/suite_bbob_noisy_utilities.c index a95cc9760..5833a8cd9 100644 --- a/code-experiments/src/suite_bbob_noisy_utilities.c +++ b/code-experiments/src/suite_bbob_noisy_utilities.c @@ -70,9 +70,9 @@ double coco_sample_uniform_noise(void){ */ /**@{*/ double coco_boundary_handling(coco_problem_t * problem, const double * x){ - double penalty, lower_bound, upper_bound; - penalty = 0.0; + double penalty, lower_bound, upper_bound; size_t dimension; + penalty = 0.0; for(dimension = 0; dimension < problem->number_of_variables; dimension ++ ){ lower_bound = problem->smallest_values_of_interest[dimension]; upper_bound = problem->largest_values_of_interest[dimension]; diff --git a/code-experiments/src/suite_cons_bbob.c b/code-experiments/src/suite_cons_bbob.c index b98b59003..516073618 100644 --- a/code-experiments/src/suite_cons_bbob.c +++ b/code-experiments/src/suite_cons_bbob.c @@ -59,11 +59,8 @@ static coco_problem_t *coco_get_cons_bbob_problem(const char *suite_name, size_t number_of_linear_constraints; coco_problem_t *problem = NULL; - coco_info("coco_get_cons_bbob_problem: allocating feasible_direction on dimension %d", dimension); double *feasible_direction = coco_allocate_vector(dimension); - coco_info("coco_get_cons_bbob_problem: feasible_direction allocated, allocating x_opt on dimension %d", dimension); double *xopt = coco_allocate_vector(dimension); - coco_info("coco_get_cons_bbob_problem: x_opt allocated"); long rseed = (long) (function + 10000 * instance); const char *problem_id_template = "bbob-constrained_f%03lu_i%02lu_d%02lu"; @@ -96,7 +93,6 @@ static coco_problem_t *coco_get_cons_bbob_problem(const char *suite_name, feasible_direction, xopt, problem_id_template, problem_name_template); problem = transform_obj_scale(problem, 10.); /* move initial feasible point to a delta-f between 100 and 10000 */ - } else if (obj_function_type(function) == 2) { problem = f_ellipsoid_c_linear_cons_bbob_problem_allocate(function, diff --git a/code-experiments/src/transform_obj_uniform_noise.c b/code-experiments/src/transform_obj_uniform_noise.c index 4e372daa7..79dc3e68a 100644 --- a/code-experiments/src/transform_obj_uniform_noise.c +++ b/code-experiments/src/transform_obj_uniform_noise.c @@ -25,10 +25,11 @@ static void transform_obj_uniform_noise_evaluate_function( ){ double uniform_noise_term1, uniform_noise_term2, fopt, uniform_noise_factor, scaling_factor, uniform_noise, tol; - coco_problem_t *inner_problem = coco_problem_transformed_get_inner_problem(problem); + transform_obj_uniform_noise_data_t *data; size_t i; + coco_problem_t *inner_problem; + inner_problem = coco_problem_transformed_get_inner_problem(problem); fopt = *(inner_problem->best_value); - transform_obj_uniform_noise_data_t *data; data = (transform_obj_uniform_noise_data_t *) coco_problem_transformed_get_data(problem); uniform_noise_term1 = coco_sample_uniform_noise(); uniform_noise_term2 = coco_sample_uniform_noise();