progress: Track optimization progress

Description Usage Arguments Value Examples

Description

Display current state and history of the genetic optimization.

Usage

1
progress(pop, k, min_fit, mean_fit)

Arguments

pop

Matrix of the gene values of the current population. Each line correspond to an individual in the initial population. Each column correspond to the value of each gene. The last column corresponds to the fitness of each individual.

k

Number of genes.

min_fit

Vector of the minimum fitness for each generation.

mean_fit

Vector of the average fitness for each generation.

Value

Plot the minimum and average fitness for the last 100 generations.

Examples

1
#TODO

swarm-lab/geneOptimQAD documentation built on May 30, 2019, 9:35 p.m.