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
2
votes
1 answer

Genetic Algorithm to store Items in 3 trucks, based on weight and value

I am currently Coding a Genetic algorithm to solve a problem that could be considered similar to the knapsack problem but the differentiating factor is that I am storing items over multiple "trucks", and their value/importance is based on a 1 = Most…
2
votes
1 answer

Genetic Algorithm Framework in .NET (GAF) - Connection between population and number of entries in the fitness function

private static int generation = 0; private static int numInGeneration = 0; public static void Calculate() { const double crossoverProbability = 0.65; const double mutationProbability = 0.08; const int elitismPercentage = 5; ... …
Alen
  • 49
  • 5
2
votes
1 answer

Has genetic algorithm been considered when designing optimizing compilers?

I wanted to ask if it makes sense, and if it does, were there any attempts ? clarification of the question: When compiler makers work on the optimizer, they try to make the compiler spit the best assembly sequence according to the target…
v.oddou
  • 6,476
  • 3
  • 32
  • 63
2
votes
2 answers

counting sets of numbers in a long list

As I am new to python programming, I am having difficulty writing a python program. I am trying to count a set of seven objects(?) of three numbered digits and tabs within a long list. Then I need to find which set of numbers (in multiples of…
Jacob
  • 29
  • 3
2
votes
1 answer

R: How to change the default FDR value imbedded in the nbinomTest() function?

I have a table, here's the start: WE1_counts WE2_counts M1_counts M2_counts M3_counts YAL008W 465 291 911 926 946 YBR255W 1040 1357 1428 1304 1112 YGR131W 95 170 230 113 138 YNL003ßC 1800 3107 3979 3012 2899 YBR135W…
zfz
  • 153
  • 3
  • 16
2
votes
1 answer

Replacing Parts of a Python AST Tree

I'm brand new to using AST, but I've been handed a 'Genetic Programming From Scratch' assignment and from what I can tell AST seems to be the way to go in terms of manipulating the tree. What I need to do is replace one branch of the tree with one…
Mike
  • 1,814
  • 4
  • 22
  • 36
2
votes
5 answers

Neural Network Basics

I'm a computer science student and for this years project, I need to create and apply a Genetic Algorithm to something. I think Neural Networks would be a good thing to apply it to, but I'm having trouble understanding them. I fully understand the…
2
votes
1 answer

Can i have a variable length chromosome in JGAP?

Im using JGAP to generate testvectors for a schematic. I got maximum coverage of a single testvector by setting the genes of a chromosome to be bits . Now i need to get a 100% coverage with minimum number of testvectors. If i design each gene to be…
ollo
  • 926
  • 1
  • 14
  • 33
1
vote
1 answer

ExpressionSet Data (gset) does not load in my project

well, I am working on the GEO data set "GSE166427" based on "GPL13667". I am trying to get this data by the R script below; but in the last line I faced some errors & warnings, however, the expression set does not load in my project. How can I deal…
mori
  • 11
  • 2
1
vote
2 answers

How to design a fitness function for a Genetic Algorithm that moves a car to a point through a city?

I am trying to design a genetic algorithm with neural networks to move a car through a city generated in Unity to a randomised target destination. I have designed it and the code works but the agent only learns to avoid obstacles and not move to the…
Oliver Fox
  • 41
  • 6
1
vote
1 answer

in PyGAD how Can I get non duplicate genes eventhough I give parameter allow_duplicate_genes=False

Hi I am trying to solve a Tsp problem by using PyGAD I made a result any how but result make duplicated number I put in initial_population: [[ 1 12 26 19 22 20 6 15 17 23 21 7 28 5 13 14 16 2 24 4 3 10 9 8 18 25 27 11] [ 2 17 23 27 22 12…
haonol
  • 15
  • 3
1
vote
1 answer

Python: How to count duplicates and compare nested sublist with another nested sublist?

I have a function that generates a random data def create_Class(self): for x in mD.get_module_Code: self.module_ID.append(x) for j in rM.get_id: self.room_ID.append(j) for t in tM.get_timeID: …
azmilhanif
  • 29
  • 5
1
vote
0 answers

Error msg in R: Error in unlist_as_integer(x@subscript) : object 'fancy_mseq' not found

I am reading 2 vcf files in to R. They load fine (I have used 3 different methods to do this (read.vcf, readVCF, and fread) and all are fine) however when I go on to try and do anything with 1 of the vcf files, the msg reads: Error in…
ayeepi
  • 135
  • 8
1
vote
0 answers

How can I choose particular ranges of gene number in mutation function of DEAP?

I would like to ask what should I do if my Mat (the first gene of the chromosome) is only 0 and 2 (not 1)? Following is the code: tools.mutUniformInt(low=[Mat_min, 0, Span_min, Span_min], up=[Mat_max, 7, Span_max, Span_max], indpb=0.05,…
1
vote
1 answer

input array in R

Hello please find below mentioned code. What I want is to add values to my array on the basis of certain condition checks which I want to undertake. If the values are eligible, then they should add to array otherwise they should be discarded.…
sagar
  • 65
  • 1
  • 1
  • 4
1 2
3
10 11