Need Solution: To increase Population Size

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Need Solution: To increase Population Size

Araisa
Hello Everyone,

          I'm doing project using JGAP. I need to set population size as 6,00,000 Chromosomes.When i give this "conf.setPopulationSize( 135000);" I'm getting this Exception.  

        Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at org.jgap.Chromosome.<init>(Chromosome.java:198)
        at org.jgap.Chromosome.<init>(Chromosome.java:266)
        at org.jgap.Chromosome.randomInitialChromosome(Chromosome.java:733)
        at org.jgap.Chromosome.perform(Chromosome.java:1104)
        at org.jgap.impl.DefaultInitializer.perform(DefaultInitializer.java:47)
        at org.jgap.Genotype.fillPopulation(Genotype.java:359)
        at org.jgap.Genotype.randomInitialGenotype(Genotype.java:334)
        at univ_timetable.UNIV_TIMETABLE.main(UNIV_TIMETABLE.java:305)
Java Result: 1

         Help me to set population size as 600000.

Thanks in Advance,
Araisa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Need Solution: To increase Population Size

disgruntled_young_man
http://tinyurl.com/85w4czl

http://stackoverflow.com/questions/717550/java-lang-outofmemoryerror-java-heap-space-with-netbeans

^^ that is for netbeans IDE, google broader terms as needed


Araisa wrote
Hello Everyone,

          I'm doing project using JGAP. I need to set population size as 6,00,000 Chromosomes.When i give this "conf.setPopulationSize( 135000);" I'm getting this Exception.  

        Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at org.jgap.Chromosome.<init>(Chromosome.java:198)
        at org.jgap.Chromosome.<init>(Chromosome.java:266)
        at org.jgap.Chromosome.randomInitialChromosome(Chromosome.java:733)
        at org.jgap.Chromosome.perform(Chromosome.java:1104)
        at org.jgap.impl.DefaultInitializer.perform(DefaultInitializer.java:47)
        at org.jgap.Genotype.fillPopulation(Genotype.java:359)
        at org.jgap.Genotype.randomInitialGenotype(Genotype.java:334)
        at univ_timetable.UNIV_TIMETABLE.main(UNIV_TIMETABLE.java:305)
Java Result: 1

         Help me to set population size as 600000.

Thanks in Advance,
Araisa
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Need Solution: To increase Population Size

Araisa
Thank you disgruntled_young_man. i could clear exception by increasing the java heap space in netbeans...

disgruntled_young_man wrote
http://tinyurl.com/85w4czl

http://stackoverflow.com/questions/717550/java-lang-outofmemoryerror-java-heap-space-with-netbeans

^^ that is for netbeans IDE, google broader terms as needed


Araisa wrote
Hello Everyone,

          I'm doing project using JGAP. I need to set population size as 6,00,000 Chromosomes.When i give this "conf.setPopulationSize( 135000);" I'm getting this Exception.  

        Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at org.jgap.Chromosome.<init>(Chromosome.java:198)
        at org.jgap.Chromosome.<init>(Chromosome.java:266)
        at org.jgap.Chromosome.randomInitialChromosome(Chromosome.java:733)
        at org.jgap.Chromosome.perform(Chromosome.java:1104)
        at org.jgap.impl.DefaultInitializer.perform(DefaultInitializer.java:47)
        at org.jgap.Genotype.fillPopulation(Genotype.java:359)
        at org.jgap.Genotype.randomInitialGenotype(Genotype.java:334)
        at univ_timetable.UNIV_TIMETABLE.main(UNIV_TIMETABLE.java:305)
Java Result: 1

         Help me to set population size as 600000.

Thanks in Advance,
Araisa
Loading...