jgap

Can i have a variable length chromosome in JGAP?

回眸只為那壹抹淺笑 提交于 2020-01-15 07:51:47
问题 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 a testvector, id need to calculate a fitness function based on the number of genes and total coverage and id also need to evolve both chromosome length and each testvectors(genes) bits .. is it even possible to have a variable length chromosome?

JGAP Robocode User Guide

眉间皱痕 提交于 2019-12-11 09:52:55
问题 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 says:- "MyRobot that resides in subdirectory myrobots. In the above call, Aspirant3285 is used" However the above subdirectory or robot is not in the download also when attempting to run the JAR files the error bellow is shown: "[main] WARN org

using JGAp (genetic algorithm library) and the duplicated chromosomes

有些话、适合烂在心里 提交于 2019-12-02 20:16:07
问题 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 F and the configurations I have used are: conf.setKeepPopulationSizeConstant(true); conf.setRandomGenerator(new StockRandomGenerator()); conf.verifyStateIsValid(); is there any configuration that I can used in order to get unique chromosomes? 回答1: You

using JGAp (genetic algorithm library) and the duplicated chromosomes

。_饼干妹妹 提交于 2019-12-02 10:24:23
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 F and the configurations I have used are: conf.setKeepPopulationSizeConstant(true); conf.setRandomGenerator(new StockRandomGenerator()); conf.verifyStateIsValid(); is there any configuration that I can used in order to get unique chromosomes? You can make sure only to use NaturalSelectors that does not allow duplicates. Example code: conf