- Project structure:
- dna.cs and GeneticAlgorithm.cs - generic implementation of the corebones of algorithm.
- MyRectangle.cs - class for the custom gene of the algorithm.
- MyProgram.cs - implementation of the fitness function and function for getting random gene; the main()
To run the project - execute MyProgram.cs.
- Some examples of output: