Need help in SuperGene settings

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

Need help in SuperGene settings

faheemshakir
I am using super genes in my project.My code is like
       
    Configuration conf = new DefaultConfiguration();
    FitnessFunction fun=new func();
    conf.setFitnessFunction(fun);

    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.setSampleChromosome(sampleChromosome);    
    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.