STEP 2: Refinement of the experiment - Genetic Algorithm
Set of parameters of the powder model (parameters of GSD and Stacking Faults) constitutes the genome.
Difference between calculated diffraction pattem of the powder model and experimental one constitutes the fitness function.
The Genetic Algorithm initialized with population of 20 randomly chosen powder models does:
1. calculate fitness for all individuals (powder models) in the population
2. select best fitted indraduals using tournament selection
3. apply mutation with probability ~ 0.1
4. cross-over best individuals
5. exit if fit ąuality satisfies