chrono::ChGenotype Class Reference

Description

Class for individuals of the population; for the ChOptimizerGenetic optimization engine.

#include <ChSolvmin.h>

Collaboration diagram for chrono::ChGenotype:

Public Member Functions

 ChGenotype (int number_of_genes)
 
 ChGenotype (const ChGenotype &other)
 
ChGenotypeClone () const
 
void Copy (ChGenotype *source)
 

Public Attributes

ChMatrixgenes
 genetic information (variables defining the individual)
 
double fitness
 fitness value
 
double rel_fitness
 relative fitness
 
double cum_fitness
 cumulative fitness
 
bool need_eval
 genes changed, need recomputation of fitness;