genetic-algorithm

Cross-Over with string Encoded Chromosomes

Cross-Over with string Encoded Chromosomes Question: I am implementing Genetic Algorithm (GA). There are 43 numbers [Ambulance Locations] to choose from (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, …

Total answers: 1

Suppressing printing epoch in PyGad

Suppressing printing epoch in PyGad Question: I’m using Pygad to train a Keras NN through genetic algorithm, and as far as I can tell the code works, however, I do not know how to prevent it from printing the epoch in the terminal: ga_instance = pygad.GA(num_generations=15, num_parents_mating=5, fitness_func=fitness_func, initial_population=keras_ga.population_weights, on_generation=on_generation, suppress_warnings=True) As you can see …

Total answers: 2

How to randomly mutate 5 values in a binary list?

How to randomly mutate 5 values in a binary list? Question: I’m writing a genetic algorithm in which I need to select 5 numbers from the binary list genotype and flip them, so a 1→0 and 0→1. I tried putting my code in a loop with a range(1,6) however when I do this it still …

Total answers: 4

Genetic Algorithms and multi-objectives optimization on PYTHON : libraries/tools to use?

Genetic Algorithms and multi-objectives optimization on PYTHON : libraries/tools to use? Question: I am scanning the internet for libraries available to use GA with potential development for multi-objective algorithms like NSGAII for Python. Do you have any suggestion? Here is what I have so far: Pyevolve : Well documented but doesn’t include multi objective Pygene …

Total answers: 2