Questions tagged [genetic-programming]

Genetic programming (GP) is a specialization of evolutionary computation where each individual is a computer program. It is used to optimize a population of computer programs according to a fitness landscape determined by a program's ability to perform a given computational task.

Genetic programming (GP) is a type of where each individual in a population is a computer program. It is used to optimize a population of computer programs according to a fitness landscape determined by a program's ability to perform a given computational task.

Traditional genetic programming, originally popularized by John Koza, represents code as expression trees, but this topic also includes other systems in which code evolves.

See also: , which refers to evolution-inspired algorithms in which an abstract representation of the solution is being evolved, rather than code itself.

347 questions
0
votes
2 answers

genetic programming for trading: How to represent chromosomes

I am working on a genetic algorithm in python that can be used for trading. The principe is simple if you are familiar with evolutionary algorithms: The genes represent trading strategies: To be more specific, each gene is a tree of this form: this…
maroxe
  • 2,057
  • 4
  • 22
  • 30
0
votes
0 answers

Unhandled exception when using GAlib in MFC project

all, I am using GAlib in my VC++ MFC project and encountered a Unhandled exception when using GA initialize() function: Unhandled exception at 0x765b2eec in XMLDOMFromVC.exe: Microsoft C++ exception: _com_error at memory location 0x00f9de10.. This…
daiyue
  • 7,196
  • 25
  • 82
  • 149
0
votes
1 answer

Restricted Tournament Selection

I need to implement a restricted tournament selection. This method consists of comparing each offspring individual with a random group of individuals. Select the one that most resembles the offspring individual and choose the best of the two to be…
0
votes
1 answer

Selecting who should breed with whom from a list of qualified parents?

This is a beginner' question, so please bear with me. I am learning about genetic algorithms, and my question is this: If I start with a population of N, and then I use some selection technique such as stochastic universal sampling to find good…
Philip Bennefall
  • 1,477
  • 5
  • 20
  • 33
0
votes
1 answer

How to use the best individual in pyevolve genetic programming

I apply GP in pyevolve to train and it gives me the best tree. I would like to use this tree to test different data. I want to keep min is root of the tree, so the function will return -1 if gp_add, gp_mul... is the root of tree. This is example…
0
votes
1 answer

Use GP for Solving Symbolic Regression

I understand how to solve a simple symbolic regression problem such as f(x)=x4+x3+x2+x. However, I'm not quite sure how to use GP to solve the below one. f(x) = x2 + cosx + 7, for x<=0, 1/x + 2x, for x>0 Can anyone help with this?
0
votes
0 answers

Linear genetic programming: fitness function for string output

I've been working on a linear genetic programming system that evolves bytecode for a simple register machine. I've been having trouble getting the solutions to converge if the target output is anything other than the same character output multiple…
Jeremy List
  • 1,756
  • 9
  • 16
0
votes
3 answers

Crossover function of two vector error

The Goal of my function is to use a 1 point crossover function between two Vector to get a new hybrid "Son" Vector having some element from the first Vector and some from the second one . public Vector crossover(int Sol1,int Sol2){ int size; …
Ghassen Bellagha
  • 249
  • 3
  • 5
  • 16
0
votes
1 answer

BNF recursion in EpochX framework

Hopefully there are a few experts in the EpochX framework around here...I'm not sure that the user group is still active. I am attempting to implement simple recursion within their represention of a BNF grammar and have fun into the following…
erik
  • 3,810
  • 6
  • 32
  • 63
0
votes
1 answer

convert from recursive to iterative function cuda c++

I'm working on a genetic program in which I am porting some of the heavy lifting into CUDA. (Previously just OpenMP). It's not running very fast, and I'm getting an error related to the recursion: Stack size for entry function…
joeButler
  • 1,643
  • 1
  • 20
  • 41
0
votes
2 answers

Roulette Wheel Selection for Genetic Algorithm in Java

I am implementing a roulette wheel selection method for a genetic algorithm. My question, in essence, is pretty simple but I can't wrap my mind around it. In my fitness function, if an answer is extremely wrong it may return around -3000%. My…
0
votes
1 answer

Can someone with GA experience examine my fitness function?

Here is my problem, I'm modifying code I found for Genetic Algorithms to do numerical optimization of a function. Essentially, given a function F and our Desired Value, the program uses GA to searches for values of x and y which provide the…
0
votes
2 answers

Agent Framework on Hadoop

I was thinking of writing a simple agent based framework using Hadoop. This is an idea I have been toying around for quite a while now (but have not put a lot of deep thinking into). The target application I want to use it for is Genetic…
user1172468
  • 5,306
  • 6
  • 35
  • 62
0
votes
1 answer

how to represent values of stock in a polynom?

i'm doing a project in genetic algorithms and we need to build a software that chooses set of stocks based on their history. we need to do it on genetic programming which means we need a fitness function and a chromosome. right i thought to the…
0
votes
2 answers

Linear Genetic Programming Intron Detection Algorithm

Can someone point me to a specific algorithm that is used to remove introns from lgp individuals ? Thank you
Sherlock
  • 5,557
  • 6
  • 50
  • 78