Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Jan 9, 2024
1 parent 942e8b7 commit d540d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The fitness values are represented by single-precision floating point numbers (f
A crossover operation combines data in the hash maps of two parents, and then it creates a vector of slots according to the content of the new hash map. A crossover 'splits' hash maps of both parents in parts of random size. The number of parts is defined by the number of crossover points (plus one) in the chromosome's parameters. Then, it alternately copies parts form parents to the new chromosome, and forms a new list of slots.

# Mutation
A mutation operation is very simple. It just takes a class randomly and moves it to another randomly chosen slot. The nmber of classes which are going to be moved in a single operation is defined by the mutation size in the chromosome's parameters.
A mutation operation is very simple. It just takes a class randomly and moves it to another randomly chosen slot. The number of classes which are going to be moved in a single operation is defined by the mutation size in the chromosome's parameters.

# Algorithm
The genetic algorithm is fairly simple. For each generation, it performs two basic operations:
Expand Down Expand Up @@ -108,7 +108,7 @@ If you are using C#, you would call GASchedule as follows:
var configuration = new GaSchedule.Algorithm.Configuration();
configuration.ParseFile("./GaSchedule.json");

var alg = new Ngra<Schedule>(new Schedule(configuration));
var alg = new Cso<Schedule>(new Schedule(configuration));
alg.Run();
var htmlResult = HtmlOutput.GetResult(alg.Result);
```
Expand Down

0 comments on commit d540d97

Please sign in to comment.