From a plot of vertices, this genetic algorithm optimizes a continious function
to best fit the data (aka least squared error). Genetic.js automatically runs
the algorithm in the background with web workers so that the UI experience isn't
compromised.
DemoGiven
the population parameters below, the simulation will run and interpolate color,
transparency, and line-thickness to show how solutions evolve over time. The
best-fit solutions are narrow and red. The least fit are large, purple, and
semi-transparent.
Dataset:
Iterations:
Degree:
Mutation:
with
Crossover:
with
Solution: Press 'Compute' Button Error:
Avg Error per Vertex:
Generation:
Average error:
error stdev: