Need help for super gene

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Need help for super gene

Naeem Shakir

I am using super genes in my project.My code is like


    Configuration conf = new DefaultConfiguration();

    FitnessFunction fun=new func();



    Gene [] gene=new Gene[3];

    gene[0]=new DoubleGene(conf,0,350));

    gene[1]=new DoubleGene(conf,00,350);

    gene[2]=new DoubleGene(conf,0,699));

   gene[3]=new unitB(conf, new Gene[]{

     new DoubleGene(conf,0,300)),

    new DoubleGene(conf,0,500)});


    Chromosome sampleChromosome = new Chromosome(conf, gene );


    conf.setPopulationSize( 1000 );

        Genotype genotype =Genotype.randomInitialGenotype( conf );


I am getting problem an error in last line of code when I run my project. Can someone help me how can I figure out problem.

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
jgap-users mailing list
[hidden email]