Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [genetic-algorithms]

A method for solving constrained and unconstrained optimization problems based on natural selection processes. Use this tag for questions about GA; programming questions are off-topic. See https://ai.meta.stackexchange.com/q/71/1671

-1
votes
0answers
20 views

Set model weights to preset tensor with torch

I am attempting to train a torch model with neuro-evolution. I cannot seem to be able to set weights of a model to a preset tensor. I am able to: Assign weights based on random values, ...
1
vote
2answers
24 views

Stereo matching using genetic algorithm

I have been reading a few papers (paper1, paper2) on stereo matching using genetic algorithms. I understand how genetic algorithms work in general and how stereo matching works, but I do not ...
3
votes
2answers
46 views

Genetic algorithm: How to crossover 2D permutation?

Each chromosome contains an array of genes, each gene contains a letter and a number, both letter and number can only exist once in each chromosome. ...
2
votes
0answers
12 views

Using NEAT, will the child of two parent genomes always have the same structure as the more fit parent?

I'm trying to implement the NEAT Algorithm using c#, based off of Kenneth O. Stanley's paper. On page 109 (12 in the pdf) it states "Matching genes are inherited randomly, whereas disjoint genes (...
0
votes
2answers
46 views

Simulated Annealing vs genetic algorithm?

What kind of problems does simulated annealing perform better than genetic algorithms if any? From my experience, genetic algorithm seems to perform better than simulated annealing for most problems
1
vote
1answer
40 views

Genetic Algorithm vs Particle Swarm Optimization

Which one gives better optimization results? Genetic Algorithm or Particle Swarm Optimization? Can I use them for online tuning problems? Thanks in advance!
1
vote
2answers
49 views

why we apply mutation after getting offspring in genetic algorithm?

When we get the offspring and fitness so why we prefer to apply mutation in genetic algorithm?
3
votes
1answer
106 views

Scrabble game using machine learning

I've been thinking if machine learning can be used to play the game Scrabble. My knowledge is limited in the ML field, thus I've seeking some pointers :) I want to know how could I possibly build a ...
0
votes
1answer
72 views

How to calculate fitness function of 8-queens problem?

In evolutionary computation and in particular in the context of genetic algorithms, there is a stochastic operation called "fitness function". The better a state, the greater the value of the fitness ...
3
votes
0answers
55 views

How to create a good fitness function?

In genetic algorithms, a function called "fitness" (or "evaluation") function is used to determine the "fitness" of the chromosomes. Creating a good fitness function is one of the challenging tasks in ...
2
votes
1answer
38 views

How can a genetic algorithm adapt and get better in a changing environment?

I've just started studying genetic algorithms and I'm not able to understand why a genetic algorithm can improve if, at each learning, the 'world' that the population encounters change. For example, ...
1
vote
1answer
52 views

Selection methods in genetic algorithms

In genetic algorithm, there are different steps. One of those steps is selection of chromosomes for reproduction (Evolution). In this step there are different methods are used for selection of ...
4
votes
2answers
146 views

What is the difference between “mutation” and “crossover”?

In the context of evolutionary computation, in particular genetic algorithms, there are two stochastic operations "mutation" and "crossover". What are the differences between them?
2
votes
1answer
62 views

What kind of algorithm can invent?

Set aside networks, image classification, gradients, and the strength of intelligence for a moment and consider the world before people lit fires. Fires were started periodically just as they are now,...
2
votes
3answers
82 views

Do genetic algorithm and neural networks really think?

I'm aware of those AI programmes which can play games and neural networks which can identify pictures. But are they really thinking. Do they think like humans? Do they have consciousness? Or are they ...
1
vote
0answers
19 views

How to use Genetic Algorithm for varying lengths of solutions

Until now, I always thought that Genetic Algorithm can be used for problems of which the solution space can be encoded (modeled) as a chromosome of a specific length. However, some people claim that ...
7
votes
4answers
174 views

Spontaneous emergence of replicators in Artificial Life

One of the corner stones of The Selfish Gene (Dawkins) is the spontaneous emergence of replicators, i.e. molecules capable of replicating themselves. Has this been modeled in silico in open-ended ...
1
vote
1answer
75 views

Fitness function in genetic algorithm based on an interval

I am writing an app, where when a ball is shot from a canon it is supposed to land in a hole which is on a given distance. The ball is supposed to land between the distance of the begining of the hole ...
2
votes
3answers
166 views

Do intelligent systems make mistakes?

The intelligence of the human brain is said to be a strong factor leading to human survival. The human brain functions as overseer for many functions the organism requires. Like that, the most ...
2
votes
1answer
58 views

Representation of real numbers in Genetic Algorithm

Take a look at section 2.2.2 of this book (from Page-15 to 16). 2.2.2 Representation and Evaluation $$max f (x)= x sin(10πx)+2.0 ... ... ... (2.8)$$ $$s.t. −1 ≤ x ≤ 2$$ We can use a ...
1
vote
2answers
60 views

Learning Genetic algorithm for beginners

What is the best and easiest programming language to learn to implement Genetic algorithms? C++ or Python or any other?
1
vote
0answers
146 views

NEAT + Keras : reproducibility problem (World Models implementation)

I'm trying to apply the World Models architecture to the Sonic game (using the gym-retro library). My problem concerns the evolutionnary algorithm part that I use as the controller (worldmodels = ...
1
vote
1answer
82 views

How to optimize a function using a genetic algorithm?

I recently learned about Genetic algorithms and I solved the 8 queens problem using a genetic algorithm but I don't know how to optimize any functions using a genetic algorithm. I want a guide on how ...
1
vote
3answers
77 views

Can genetic algorithms be used to learn to play multiple games of the same type?

Is it possible for a genetic algorithm + Neural Network that is used to learn to play one game such as a platform game able to be applied to another different game of the same genre. So for example, ...
3
votes
1answer
49 views

Genetic Algorithms: Trade-off between time and variance with regards to fitness function

I'm developing an AI to play a card game with a genetic algorithm. Initially, I will evaluate it against a player that plays randomly, so there will naturally be a lot of variance in the results. I ...
1
vote
1answer
43 views

A3C & TWEAN (NEAT)

As a amateur researcher and tinkerer, I've been reading up on neuro-evolution networks (e.g. NEAT) as well as the A3C RL approach presented by Mnih et al and got to wondering if anyone has ...
1
vote
1answer
43 views

How can I calculate MBF in genetic algorithms?

I've just started to learn genetics algorithms and I have found these measurements of runs that I don't understand: MBF: The mean best fitness measure (MBF) is the average of the best fitness ...
1
vote
0answers
61 views

Genetic Algorithm to Play Arkanoid(Nes) Possible Crossover and Fitness?

I am using the Fceux emulator to create a Genetic Algorithm in Lua to play the 'Arkanoid' game. It is based on Atari Breakout. A member of my population contains a string of 0's and 1's.(Population ...
3
votes
1answer
229 views

Genetic Algorithm - creatures in 2d world are not learning

Goal - I am trying to implement a genetic algorithm to optimise the fitness of a species of creatures in a simulated two-dimensional world. The world contains edible foods, placed at random, and a ...
1
vote
1answer
109 views

NEAT - how to restrict neural network structure to be acyclic?

I want my neural network structure to not have a circular/looping structure something similar like a directed acyclic graph(DAG), how do I implement a restriction for that?
1
vote
1answer
232 views

NEAT crossover - what to do with disjoint and excess genes

According to the original paper "Genes that do not match are inherited from the more fit parent" But what if the more fit parent has lesser nodes compared to the other, will the disjoint/excess genes ...
2
votes
4answers
293 views

Can AI be programmed to not to lie?

We know that AI can lie. But, can evolutionary (self-learning) AI be programmed in such a way that they don't lie, even as they evolve? SOURCE: Evolving Robots Learn To Lie To Each Other (Popsci) ...
1
vote
1answer
300 views

How to evaluate a NEAT neural network?

I'm trying to write my own implementation of NEAT and I'm stuck on the network evaluate function, which calculates the output of the network. NEAT as you may know contains a group of neural networks ...
4
votes
1answer
55 views

Summed weights are too big for activation function [GANN]

I am trying to create a fixed-topology MLP network from scratch (C#) which can classify some simple problems such as XOR and MNIST (Handwriting). The network will be trained purely with genetic ...
3
votes
1answer
774 views

Implementing the “original” NEAT algorithm in JavaScript

I've recently read the original paper about NeuroEvolution of Augmenting Topologies by Kenneth O. Stanley and am now trying to prototype it myself in JavaScript. I stumbled across a few questions I ...
2
votes
2answers
208 views

What's the difference in between biological evolution and artificial evolution?

I am trying to understand the difference between the workings biological evolution and artificial evolution. If we look at it in terms of genetics, in both of them, selection is the key term, natural ...
1
vote
1answer
125 views

NEAT - Can mutation enable a disabled connection?

In the add node mutation, the connection between two chosen nodes (e.g A and B) is first disabled and then a new node is created between A and B with their respective two connections. I guess that the ...
4
votes
2answers
239 views

NEAT - Innovation for Connection genes only?

Does NEAT requires only connection genes to be marked with a global innovation number? From the NEAT paper Whenever a new gene appears (through structural mutation), a global innovation number is ...
1
vote
1answer
47 views

Which algorithm for scheduling race grid?

I want to plot a schedule of races based on rules. Rules like "each team needs at least 2 races between their next race" and some teams (e.g. collegiate) need to be clumped near each other. What ...
0
votes
0answers
117 views

Number of hidden layers/neurons for Connect4 Neural Networks

I have developed a neural network program to evolve neural nets to play connect 4. I have 42 input nodes, each one corresponding to a disc on the board which can either be occupied by red (-1), empty ...
4
votes
2answers
919 views

Hill climbing search - Map coloring problem

I have a problem like this: How to color a map with K colors such that two adjacent regions do not share a color. how can we start formulating this as a hill climbing search problem?
1
vote
0answers
66 views

Novelty Search Mutation Algorithm

I have been reading a lot lately about some very promising work coming out of Uber's AI Labs using mutation algorithms enhanced with NOVELTY SEARCH to evolve deep neural nets. https://www.arxiv-...
2
votes
0answers
112 views

Search minimum value with learning machine algorithm

I was wondering if its possible to classify or learn to estimate the minimum value in a table if the values are integer and represented 32 bits, and we can input all variable at the same moment like ...
-2
votes
1answer
308 views

How to train a simple neural network to create source code

I am thinking of making a simple and interesting research on training a RNN, to create source codes. The objective is to have a set of simple REPL programs in java, and create a source code for a ...
2
votes
2answers
747 views

Trying to make snake learn different directions

I'm really new to neural networks. I'm trying to make a neural network with genetics algorithms which will make a snake learn to look for the food and avoid hitting his tail. The thing is that I ...
1
vote
1answer
121 views

adjusted fitness in NEAT algorithm

I'm learning about NEAT from the following paper: http://nn.cs.utexas.edu/downloads/papers/stanley.ec02.pdf I'm having trouble understanding how adjusted fitness penalizes large species and prevents ...
7
votes
1answer
725 views

Neural networks vs Genetic algorithms in games like Tic Tac Toe?

Currently I'm doing a project that's about creating an AI to play the game Gomoku (It's like tic tac toe, but played on a 15*15 board and requires 5 in a row to win). I have already successfully ...
1
vote
0answers
41 views

Which algorithm would you use to solve a multiple producer-consumer problem with constraints?

I'm solving this problem similar to consumer-producer of materials (i.e. sand). This is the graph of the problem: Where Req (...
3
votes
1answer
195 views

Fitness Function altenatives in Genetic Algorithms for game AI

I have created a Gomoku(5 in a row) AI using Alpha-Beta Pruning. It makes moves on a not-so-stupid level. First, let me vaguely describe the grading function of the Alpha-Beta algorithm. When it ...
0
votes
1answer
41 views

Applied probabilistically… What does probabilistically mean?

I'm new in genetic algorithms and I'm reading the A. E. Eiben and J. E. Smith book Introduction to Evolutionary Computing (Springer 2003). On section 3.5 Recombination, page 47, second paragraph said:...