Need Solution: To increase Population Size

View: New views
3 Messages — Rating Filter:   Alert me  

Need Solution: To increase Population Size

by Araisa :: Rate this Message:

| View Threaded | Show Only this Message

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

Re: Need Solution: To increase Population Size

by disgruntled_young_man :: Rate this Message:

| View Threaded | Show Only this Message

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

Re: Need Solution: To increase Population Size

by Araisa :: Rate this Message:

| View Threaded | Show Only this Message

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


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