Research Article
A Dynamic Genetic Algorithm for Solving a Single Machine Scheduling Problem with Periodic Maintenance
Algorithm 1
Pseudocodes for proposed genetic algorithm.
Inputs: (Number of variables), (Number of initial individuals), (Crossover percentage), (Mutation percentage), | (Number of generations) | (1) Initialization: | (1-1) Create chromosomes calculate the fitness of each one and sort them due to their fitness | (2) Iterations: for to : | (2-1) Selection | (2-1-1) Select individuals using roulette wheel for crossover. | (2-1-2) Select individuals using roulette wheel for mutation. | (2-2) Reproductions | (2-2-1) Conduct the crossover operator on each pair of the selected parents to generate offspring | (2-2-2) conduct the mutation operator on each of the selected parents to generate an offspring. | (2-2-2-1) If the current solution is repeated less than conduct /3 swapping and else go to (2-2-2-2) | (2-2-2-2) If the current solution is repeated less than conduct /2 swapping and else go to (2-2-2-3) | (2-2-2-3) Conduct swapping. | (2-2-3) Merge mutants, Crossover offsprings and initial population; sort them according to fitness and choose the top | members. | (2-3) If the current solution is repeated for go to (3) and else continue. | (3) End of genetic algorithm. |
|