Skip to content

Commit

Permalink
Fixing logger
Browse files Browse the repository at this point in the history
  • Loading branch information
FMGS666 committed Dec 7, 2023
1 parent c93eabb commit 1942472
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code-experiments/src/logger_bbob.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,11 @@ static void logger_bbob_evaluate(coco_problem_t *problem, const double *x, doubl

logger->last_logged_evaluation = 0;
logger->current_value = y[0];
y_logged = y[0];
if (inner_problem->is_noisy == 1){
logger->current_value = inner_problem->last_noise_free_values[0];
y_logged = inner_problem->last_noise_free_values[0];
}

y_logged = y[0];
if (coco_is_nan(y_logged))
y_logged = NAN_FOR_LOGGING;
else if (coco_is_inf(y_logged))
Expand Down
1 change: 0 additions & 1 deletion code-experiments/src/suite_bbob_noisy.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* @brief Implementation of the bbob suite containing 24 noiseless single-objective functions in 6
* dimensions.
*/

#include "transform_obj_gaussian_noise.c"
#include "transform_obj_uniform_noise.c"
#include "transform_obj_cauchy_noise.c"
Expand Down
1 change: 0 additions & 1 deletion code-experiments/src/transform_obj_cauchy_noise.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*/
#include "coco.h"
#include "suite_bbob_noisy_utilities.c"
#include <stddef.h>


/**
Expand Down

0 comments on commit 1942472

Please sign in to comment.