Genetic Algorithm
Public Attributes | List of all members
genome_t Struct Reference

The genome structure. It contains genes, the length of those genes and a fitness score. The genome must be initialized with the genome_target_init function before use. More...

#include <genetic_algorithm_utils.h>

Public Attributes

gene_tgenes
 Pointer to an array of genes. More...
 
uint16_t length
 length of the genes. More...
 
int fitness
 Fitness of the genes. More...
 

Detailed Description

The genome structure. It contains genes, the length of those genes and a fitness score. The genome must be initialized with the genome_target_init function before use.

Member Data Documentation

◆ fitness

int genome_t::fitness

Fitness of the genes.

◆ genes

gene_t* genome_t::genes

Pointer to an array of genes.

◆ length

uint16_t genome_t::length

length of the genes.


The documentation for this struct was generated from the following file: