logger_toy.c File Reference

Implementation of the toy logger. More...

#include <stdio.h>
#include <assert.h>
#include "coco.h"
#include "coco_utilities.c"
#include "coco_problem.c"
#include "coco_string.c"
#include "observer_toy.c"

Data Structures

struct  logger_toy_data_t
 The toy logger data type. More...
 

Functions

static void logger_toy_free (void *stuff)
 Frees the memory of the given toy logger. More...
 
static void logger_toy_evaluate (coco_problem_t *problem, const double *x, double *y)
 Evaluates the function, increases the number of evaluations and outputs information based on the targets that have been hit. More...
 
static coco_problem_tlogger_toy (coco_observer_t *observer, coco_problem_t *inner_problem)
 Initializes the toy logger. More...
 

Detailed Description

Implementation of the toy logger.

Logs the evaluation number, function value the target hit and all the variables each time a target has been hit.

Function Documentation

static coco_problem_t* logger_toy ( coco_observer_t observer,
coco_problem_t inner_problem 
)
static

Initializes the toy logger.

static void logger_toy_evaluate ( coco_problem_t problem,
const double *  x,
double *  y 
)
static

Evaluates the function, increases the number of evaluations and outputs information based on the targets that have been hit.

static void logger_toy_free ( void *  stuff)
static

Frees the memory of the given toy logger.