Questions tagged [jgap]

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

18 questions
0
votes
1 answer

How can I set a chromosome with non repeated alleles using JGAP?

I'm using JGAP for my code and I want to evaluate chromosomes like this: Evaluation 0: 1 2 3 4 5 6 7 8 9 Evaluation 1: 3 5 2 1 4 6 7 8 9 Until now, I'm getting chromosomes with repeated alleles, like this: Evaluation 1: 3 3 5 6 7 8 9 9…
eoportus
  • 101
  • 1
0
votes
1 answer

using JGAp (genetic algorithm library) and the duplicated chromosomes

I used the JGAp java genetic algorithm library. and when I evaluated the chromosomes , I had duplication of chromosomes in the population sample run : evaluation 0 A B C A D F S F W evaluation 1: A B C A D F A D F evaluation 2: A D F A D F A D…
Abrial
  • 421
  • 1
  • 5
  • 20
-1
votes
1 answer

Genotype.evolve() throws 'Comparison method violates its general contract'

I'm writing a genetic algorithm to solve a classification problem. I'm setting up my configuration exactly how I've seen others do online, but using my own fitness function (required). I generate a random Genotype which holds my population and then…
Josh
  • 529
  • 6
  • 21
1
2