Skip to content

Latest commit

 

History

History
125 lines (80 loc) · 2.34 KB

experiment.md

File metadata and controls

125 lines (80 loc) · 2.34 KB

Utilities
Parameters
Experiment ━━ Genus ━━ Species ━━ Organism ━━ Genotype ━━ Chromosome ━━ Node
                                                                ┗━━━━ Phenotype              ┗━━━━━ Link

Experiment

An Experiment drives the evolution of a Genus.
 

Properties

int MPI_rank

This Experiment's MPI rank returned by MPI_Comm_size.
 

int MPI_size

The total number of MPI processes returned by MPI_Comm_rank.
 

std::vector<int> MPI_counts
std::vector<int> MPI_displacements

The counts and displacements required by MPI_Allgatherv.
 

std::vector<Vertex> vertexes

Stores the Vertexes which define this Experiment's starting minimal Graph.
 

std::vector<Edge> edges

Stores the Edges which define this Experiment's starting minimal Graph.
 

static std::vector<std::vector<std::vector<double>>> stimuli

Contains the stimuli presented to the Organisms throughout the evolutionary process.
 

Genus* genus

Points to the Genus to be evolved by this Experiment.
 

Constructor

Experiment()

Constructs an empty Experiment.
 

Destructor

~Experiment()

Destructs the Experiment, as well as its Genus.
 

Methods

void run()

Runs this Experiment.
 

virtual void display()

Displays any of this Experiment's properties.
 

void score()

Uses MPI to score all Organisms in parallel.
 

virtual double fitness(Organism* organism_) = 0

Evaluates the referenced input Organism's fitness score.