Questions tagged [genetic-algorithm]

-1 votes
0 replies
How to model a genetic algorithm to select 5 pixel with which to distinguish between 26 16x16 pixel images? [closed]
I am trying to implement a genetic algorithm, which takes a dataset of images (16x16 pixels, each either white or black) of the English alphabet...
0 votes
0 replies
Batch Evaluation of Individuals In GALib
Is there a way to achieve batch evaluation of individuals in GALib? In other words, getting the objective function to evaluate an entire populati...
asked 3 months ago
0 votes
0 replies
How to optimize a parameter in simulink using genetic algorithm (GA)?
I have a simulink model of a control system where a output is being constantly compared with the setpoint and error is being set to the controlle...
0 votes
0 replies
Drawing Mona Lisa with Polygons
Im having a problem with drawing the Mona Lisa with polygons, what's happening is that: after almost the 10000th generation, everything looks...
0 votes
1 replies
Look up table with fixed sized bit arrays as keys
I have a series of fixed size arrays of binary values (individuals from a genetic algorithm) that I would like to associate with a floating point...
0 votes
1 replies
Population size in Fast Messy Genetic Algorithm
I'm trying to implement the Fast Messy GA using the paper by Goldberg, Deb, Kargupta Harik: fmGA - Rapid Accurate Optimization of Difficult Probl...
0 votes
1 replies
Is it better to use genetic algorithm to solve the 0-1 Knapsack problem?
The Knapsack problem is a combinatorial optimization problem where one has to maximize the bene t of objects in a knapsack without exceeding its...
-1 votes
0 replies
Genetic Algorithms MATLAB code not working
The goal is to minimize fitness. So I want to get the fittest parent from the population. First rank selection then crossover and then mutation...
0 votes
1 replies
How I can select random row in array?
I've got project for genetic algorithm. I make random array with my code. I need your help for random two row selection. If you can please give...
asked 4 months ago
0 votes
1 replies
Genetic Algorithm to Minimize Function using Discrete Values
I am trying to solve for the optimum combination of 6 discrete values that take any number between 2 and 16 which will return to me the minimum f...
0 votes
1 replies
Why does my genetic algorithm return negative fitness values?
I'm trying to minimize the function and then graph it, but I'm getting negative fitness values and I don't know how or why. I'm using the GA pack...
asked 4 months ago
1 votes
1 replies
What would be a good approach to mutate a turtle variable in NetLogo?
I'm simulating a multi-agent system. Each agent has a chromosome. The genotypes represent 5 parameters that are various floating-point numbers be...
0 votes
0 replies
Multi-threading the Evaluation of Individuals in the GALib's GAPopulation
From the GALib code the evaluation of individuals is done in a sequential manner as shown in the code snippet below. void GAPopulation::DefaultE...
asked 4 months ago
0 votes
0 replies
Getting ValueError in sorting one list based on another list
Experts, I am trying to write a code of "Genetic Algorithm". I am considering a population of 100 initially and trying to optimize the sphere fun...
asked 4 months ago
0 votes
0 replies
Hyperparmeters tuning using genetic algorithm for SVR(regression)|Library|
I need to optimize SVR hyperparameters with Genetic Algorithm. Can you please suggest a library where SVR is supported? I have gone through TPOT...
asked 4 months ago
0 votes
0 replies
How to represent music notes in genetic algorithm
I'm experimenting with creating music with genetic algorithms in Java. Drum patterns for one bar are easy to represent in a binary array. I only...
asked 5 months ago
2 votes
0 replies
Genetic algorithm - problem with inheritance
I have implemented a genetic algorithm to fit polynomial that should divide 2 sets of points. I generate first random population and results seem...
asked 5 months ago
0 votes
0 replies
Genetic algorithm optimization in R does not consider sparse solutions
Simple knapsack type, binary optimization with 1 constraint using the GA package in R. With a known optimal solution of say 5% of total popula...
1 votes
0 replies
NSGA-II with flight ticket reservation
I am totally confused with this optimization problem. Since I am a beginner for this evolutionary algorithms, if I asked a basic question, please...
0 votes
0 replies
In MATLAB how to set mutation and cross over rates in GA function?
I used ga function in MATLAB and it works fine but I want to know how can I set mutation and cross over rates on this function. I have read this...
0 votes
0 replies
How to fix Tensorflow TypeError error in GeneticAlgs library
I am trying to use the GeneticAlgs library to optimize the weights of a neural network. However, invoking the init_random_population method on a...
asked 4 months ago
0 votes
0 replies
I have to work on time series along with GEP which python library should I use?
I need to trying to make time series prediction using GEP. But I have no idea how to implement it. I know that this can be done as I read a paper...
3 votes
1 replies
Randomizing orders in a GA population not working properly in Lua
I'm new to using Lua, and I'm creating a TSP solution in Lua using a genetic algorithm, but the function to randomize the orders of the populatio...
asked 4 months ago
0 votes
1 replies
Genetic algorithm for permutations without repetition
I am writing a Genetic Algorithm (GA) to find a certain permutation in my social network data (an iGraph object). I am using the R library GA, bu...
asked 6 months ago
3 votes
1 replies
I cannot to get a right answer with genetic algorithm in python
i'm trying to write a simple generation algorithm with python, which should give to me asnwer "Hello World". It's work fine, but it cannot give m...