Skip to content

Commit

Permalink
removing debugging messages
Browse files Browse the repository at this point in the history
  • Loading branch information
FMGS666 committed Dec 14, 2023
1 parent c49b8e9 commit 4950eef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions code-experiments/src/suite_bbob_noisy_utilities.c
Expand Up @@ -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];
Expand Down
4 changes: 0 additions & 4 deletions code-experiments/src/suite_cons_bbob.c
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down
5 changes: 3 additions & 2 deletions code-experiments/src/transform_obj_uniform_noise.c
Expand Up @@ -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();
Expand Down

0 comments on commit 4950eef

Please sign in to comment.