libfgen  0.1.15
Library for optimization using a genetic algorithm or particle swarm optimization
Data Fields

#include <fgen.h>

Data Fields

int nu_params
int nu_bits_per_param
double * range_min
double * range_max
int * mapping
int population_size
int optimization_type
int stop_signalled
int model_change_signalled
int nu_islands
double * best_island_params
double best_island_error
int threading_level
int generation_callback_interval
void * population
FfitGenerationCallbackFunc ffit_generation_callback_func
FfitCalculateErrorFunc ffit_calculate_error_func

Detailed Description

The main data structure for the ffit functionality.

Definition at line 464 of file fgen.h.


Field Documentation

int Ffit::nu_params

Number of parameters in the model.

Definition at line 465 of file fgen.h.

int Ffit::nu_bits_per_param

Representation in the genetic algorithm (16, 32 or 64).

Definition at line 466 of file fgen.h.

double* Ffit::range_min

Minimum value of each parameter.

Definition at line 467 of file fgen.h.

double* Ffit::range_max

Maximum value of each parameter.

Definition at line 468 of file fgen.h.

int* Ffit::mapping

Mathematical mapping based on the range [0, 1[.

Definition at line 469 of file fgen.h.

int Ffit::population_size

Population size of the optimization algorithm.

Definition at line 470 of file fgen.h.

int Ffit::optimization_type

Type of optimization algorithm.

Definition at line 471 of file fgen.h.

int Ffit::stop_signalled

Flag indicating whether termination of the algorithm is requested.

Definition at line 472 of file fgen.h.

int Ffit::model_change_signalled

Flag indicating whether the model function has changed.

Definition at line 473 of file fgen.h.

int Ffit::nu_islands

Internal use.

Definition at line 474 of file fgen.h.

double* Ffit::best_island_params

Internal use.

Definition at line 475 of file fgen.h.

double Ffit::best_island_error

Internal use.

Definition at line 476 of file fgen.h.

int Ffit::threading_level

Whether to use threads.

Definition at line 477 of file fgen.h.

int Ffit::generation_callback_interval

How often to call the generation callback function.

Definition at line 478 of file fgen.h.

void* Ffit::population

Pointer to optimization algorithm population (internal use).

Definition at line 479 of file fgen.h.

FfitGenerationCallbackFunc Ffit::ffit_generation_callback_func

Generation call-back function.

Definition at line 480 of file fgen.h.

FfitCalculateErrorFunc Ffit::ffit_calculate_error_func

Error calculating function.

Definition at line 481 of file fgen.h.

 All Data Structures Functions Variables