Homework for nature inspired algorithms course. Assignment is to solve the minimum make-span problem using a genetic algorithm.
To compile the code, when in the nature_inspired_genetic_algo directory run
javac genetic/*.java
- Initializer
- selecter
- recombiner
- mutater
- replacer
There are 5 interfaces, each representing a step in the genetic algorithm. There are also 3 classes. The chromosome class, the Problem class, and the GeneticAlgorithm class. The chromosome class explains itself. The Problem class is used to hold the problem parameters like num machines and num jobs. The GeneticAlgorithm class is constructed with implementations of the 5 interfaces, and is used to actually run the genetic algorithm.
Data files are structured as following..
benchark3_50_101.csv
50 Machines 101 Jobs
Each line in the file is 1 jobs time to completion.
...So he made a folder called InheritanceExample which successfully implements inheritance. Feel free to use it to remind yourself how inheritance works if you're into that sort of thing.