logger_rw_data_t Struct Reference

The rw logger data type. More...

Data Fields

FILE * out_file
 File for logging. More...
 
size_t number_of_evaluations
 The number of evaluations performed so far. More...
 
double best_value
 The best-so-far value. More...
 
double current_value
 The current value. More...
 
int log_vars
 Whether to log the decision values. More...
 
int log_cons
 Whether to log the constraints. More...
 
int log_only_better
 Whether to log only solutions that are better than previous ones. More...
 
int log_time
 Whether to log evaluation time. More...
 
int precision_x
 Precision for outputting decision values. More...
 
int precision_f
 Precision for outputting objective values. More...
 
int precision_g
 Precision for outputting constraint values. More...
 
int log_discrete_as_int
 Whether to output discrete variables in int or double format. More...
 

Detailed Description

The rw logger data type.

Note
Some fields from the observers (coco_observer as well as observer_rw) need to be copied here because the observers can be deleted before the logger is finalized and we need these fields for finalization.

Field Documentation

double best_value

The best-so-far value.

double current_value

The current value.

int log_cons

Whether to log the constraints.

int log_discrete_as_int

Whether to output discrete variables in int or double format.

int log_only_better

Whether to log only solutions that are better than previous ones.

int log_time

Whether to log evaluation time.

int log_vars

Whether to log the decision values.

size_t number_of_evaluations

The number of evaluations performed so far.

FILE* out_file

File for logging.

int precision_f

Precision for outputting objective values.

int precision_g

Precision for outputting constraint values.

int precision_x

Precision for outputting decision values.


The documentation for this struct was generated from the following file:
  • C:/Users/dimo/Desktop/coco/code-experiments/src/logger_rw.c