Struct PGAIndividual

Struct Documentation

struct PGAIndividual

Individual Structure.

Public Members

int index

< primary population data structure

index of this indiv of the pop

double evalue

evaluation function value

double fitness

fitness function value

int evaluptodate

flag whether evalue is current

void *chrom

pointer to the GA string

double *auxeval

Auxiliary evaluations

double auxtotal

Total aux evaluation

int auxtotalok

flag wether auxtotal is current

unsigned int rank

Rank for dominance-sorting

struct PGAContext *ctx

Pointer to our PGAContext

struct PGAIndividual *pop

The population of this indiv.

double crowding

Crowding metric for NSGA-II,-III

int funcidx

Temporary function index, unused

double *normalized

Normalized point for NSGA-III

double distance

Distance to associated point

int point_idx

Index of associated point

struct PGAIndividual *next_hash

Next hash value in chain

struct PGAIndividual **neighbor[2]

Crowding metric neighbors

double evsum

Sum of evals for ENNS

double crowding2

Second metric for 2nn

rb_tree_t dist_tree

Euclidean distances

rb_tree_t neig_tree

ENNS neighbors

double max_dist

Max distance for enns

int crowd_idx

Individual’s index into crowd