Questions tagged [genetic]

Related to the information representation or its coding whereby different features of a unit of measurement, which can be interpreted as any decision. We can see the most common its implementation in evolutionary algorithms, the most famous of which are genetic algorithms. In generally, "Genetic" points us to something changeable in time base on an evolutionary process, like living organism. Technically, it is interesting to optimization algorithms.

A genetic algorithm (GA) is a method for solving both constrained and unconstrained optimization problems based on a natural selection process that mimics biological evolution.

Source: http://www.mathworks.com/discovery/genetic-algorithm.html

162 questions
-1
votes
1 answer

genetic python algorithm to make the smallest set of words

I have a course in AI and I have an exercise to write a code producing the shortest possible sentence (in term of number of character) I have a list2D of departure It's just word list no real english sentence.I do not need to have a correct sentence…
rori
  • 11
  • 8
-1
votes
1 answer

Remove (or replace) items in a multi-level list based on one of the parameters inside

population=[[[0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 1], [4], [0]], [[0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 1], [3], [1]], [[0, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0], [4], [2]], [[1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0],…
vferraz
  • 441
  • 4
  • 17
-1
votes
1 answer

Genetic algorithm(finding expression using digits and operators)

I have the following genetic programming problem(Homework): I need to use 5 digits (0 to 9) and any operators(+,-,*,/) to generate a expression to give me the answer as 30. Can anyone please explain how can I go about solving this using genetic…
-1
votes
2 answers

Genetic Algorithm / AI; basically, am I on the right track?

I know Python isn't the best idea to be writing any kind of software of this nature. My reasoning is to use this type of algorithm for a Raspberry Pi 3 in it's decision making (still unsure how that will go), and the libraries and APIs that I'll be…
-1
votes
1 answer

implementation details of EvoSuite

I am using EvoSuite and everything is fine in generating the test suites. But I need to know how it works. I know it uses GAs, but I am interested in the implementation details. 1. Are ASTs (abstract syntax trees) used in order to implement the…
-2
votes
1 answer

Find the minimum of "y=x*x" using genetic algorithm in Matlab

Would somebody help me please in this question. I'm new in Matlab... And it's a bit hard for me to understand how to create and use genetic algorithm in Matlab. If anybody could help to write some very simple code for searching minimum/maximum of…
-2
votes
0 answers

How do I correct the following errors in this code that converts keypoints to a gene tree

I used AI to convert a math formula into an example code to test how facial features could be converted to genetic traits and output as a family tree of genes. It output the following that can run correctly due to errors: "` import numpy as…
-2
votes
1 answer

Difficulties in representing domain in genetic algorithm

I have a following problem - I have a rule engine (drools) that evaluates risk score of transactions.If risk is too high (>200) then it is marked as unsafe. Each rule has their weight (1-100) that is assigned to risk score if rule gets executed. I…
-2
votes
1 answer

How can I encode double values in genetic algorithm?

I want to use neural network to learning cars riding on the racetrack. Imo best way to learning net is using genetic algorithm, but in each tutorial the genotype is encode by 0 and 1 (binary values). In my net weights are double values, so genotype…
Bambelal
  • 179
  • 1
  • 2
  • 13
-3
votes
1 answer

Python - Genetic Algorithm mutation function is not working

I created an AI in python/pygame but even after spending hours of debugging, I could not find why the individuals(dots) are not getting mutated. After few generations, all the individuals just overlap each other and follow the same exact path. But…
-3
votes
1 answer

C++ Incompatible types: calculating allele frequencies

Here is what the input file looks like: 1-1_Sample 1 GCCCATGGCT 2-1_Sample 1 GAGTGTATGT 3-1_Sample 1 TGTTCTATCT 1-1_Sample 2 GCTTAGCCAT 2-1_Sample 2 TGTAGTCAGT 3-1_Sample 2 GGGAACCAAG 1-1_Sample 3 TGGAAGCGGT 2-1_Sample…
-4
votes
1 answer

Finding minima of a function using genetic algorithm

I am working on genetic algorithm project. I need code to find out maxima/minima of Rastrigin function or Easom function (For y=0) using basic genetic algorithm.
1 2 3
10
11