Questions tagged [jgap]

JGAP (pronounced "jay-gap") is a Genetic Algorithms and Genetic Programming component provided as a Java framework.

18 questions
4
votes
1 answer

Set a Gene limit on a Chromosome

I'm currently experimenting with JGAP 3.6 to generate levels for a simple dungeon game. The problem involves using a Chromosome representation where each Gene contains an integer value which represents the type of a room e.g 0 = Starting room, 1 =…
taufans
  • 43
  • 1
  • 6
4
votes
2 answers

Are there any "gotchas" I should know about with regards to using multithreading in JGAP?

I'm working on a Genetic Programming project that tries to generate GPs that would represent an image. My approach is to split the image into different independent sections and having seperate threads do the evolution jobs on them. Since things are…
9a3eedi
  • 696
  • 2
  • 7
  • 18
2
votes
0 answers

How to set a unique chromosome in a initial population in JGAP?

I'm trying to do the following: I have a N size chromosome whose type is IntegerGene. I'm interested in that unique chromosome being evaluated following the crossover operator so I use: Configuration configuration = new…
Mich
  • 65
  • 7
2
votes
1 answer

Avoid chromosome to have duplicate genes (JGAP)

I am using JGAP as the api to set my GA app. In my chromosome some times there are duplicate integer values set as alleles. I am using the basic random generator to get the random values from a desired range. I want to avoid the genes to be the same…
arya boy
  • 31
  • 6
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

JGAP Does not Preserve Fittest Individual

I'm trying JGAP for a genetic algorithm task. I've used their example: // Start with a DefaultConfiguration, which comes setup with the // most common settings. // ------------------------------------------------------------- …
kamaci
  • 72,915
  • 69
  • 228
  • 366
1
vote
1 answer

JGAP Genetic Programming - Classification

I would like to find out if there are any tutorials which can help me get started using JGAP to solve and evolve a classification problem. Example I want to solve this dataset
1
vote
1 answer

JGAP Robocode User Guide

I've had a look at the JGAP package from the robocode website and I have been getting problems when attempting to set it up. It seems that some of the files that are talked about are not actually in the download. For instance the line on the website…
Glympse
  • 107
  • 1
  • 7
0
votes
1 answer

Genetic Algorithm - Order of variables in a chromosome

Using the concept of crossover points, the order of variables in a chromosome does seem to matter: Variables directly next to each other will have a higher chance to remain together in the children's chromosomes compared to variables far away from…
0
votes
0 answers

Genetic algorithm with binary feasibility

In my problem I plan on solving using GA, chromosomes can be infeasible. Which means, some solutions simply aren't valid and the fitness function cannot be computed for them. My goal is to keep the feasibility status binary (feasible or infeasible)…
0
votes
1 answer

Genetic Algortihm - Strategies for variable length optimizations

I have a problem I want to solve using genetic algorithms (GA). You can simplify it to the following problem: I want to optimize the car pool of a company, which means, the number of cars and car models. I already have a fitness function…
0
votes
1 answer

Including framework in java - IntelliJ

this might be a quite easy question, but I'm really getting crazy, becausse I don't get what I want working. I try so simply include a framework in my project, but I have no idea how... I'm using IntelliJ IDEA and I'm working on a little game and I…
user5638730
  • 495
  • 2
  • 9
  • 22
0
votes
1 answer

JGAP IntegerGene returning null on calling getAllele() method

I am using JGAP library for my GA.. I am creating the chromosome like this Gene[] genes[i] = new IntegerGene(conf,someInteger, someInteger); Chromosome mChromosome = new Chromosome(conf, genes); conf.setSampleChromosome(mChromosome); But when I…
user5650203
0
votes
1 answer

GA Jgap: Avoid duplicates (doublettes) chromosomes where the order doesn't count

I'm implementing with JGAP a genetic algorithm to solve a problem where the chromosome is a list of Integers (i would like to keep N good-fitting solutions in the result, not just the fittest one). Each integer must appear just once in the…
MaxS
  • 47
  • 9
0
votes
1 answer

Chromosome with non repeated alleles

I read a recommendation of how to find non-duplicated chromosomes: using JGAp (genetic algorithm library) and the duplicated chromosomes How do you find a chromosome with non-repeated alleles using JGAP?
1
2