Menu

#57 isValid in SuperGene not checked

next JGAP version
open
nobody
None
5
2015-04-03
2014-09-25
Shalafi
No

Hello.

I have checked that isValid in SuperGene is only called in initial genotype, but it is not checked in next generations. So JGAP obtains bad (invalid) chromosomes in generation 1 and next.

I have read this ticket (http://sourceforge.net/p/jgap/bugs/23/) but it does not help me; I am using compiled jar library so I can't modify JGAP code or change MAX_RETRIES because is a final variable. And I think changing that don't assure me to get valid chromosomes.

I guess the solution is to code by hand my own genetic operator to assure descendants will be always valid ones, but I don't find documentation to do it.

Any help? Thanks

Discussion

  • Klaus

    Klaus - 2014-09-26

    You can check out the sourcecode of JGAP and change it as you like.
    However: it is simply not possible to conveniently random-generate Gens that conform to specific constraints. You have to do a problem-centric implementation of your own, if you would like to have that!

     
  • Rami

    Rami - 2015-04-03

    Hello Mr. Klaus,
    i am trying to setup JGAP framework to test it. i have downloaded jgap_3.6.2_full, and i am trying to run a MATHProblem example for GP, but i see that there are some direcories/packages are missed like:

    import org.apache.log4j.; ???
    import org.homedns.dade.jcgrid.
    ; ???
    import org.homedns.dade.jcgrid.worker.; ???
    import org.apache.commons.cli.
    ; ???
    import org.homedns.dade.jcgrid.cmd.MainCmd; ???

    so, how and where can i get them please??

    thanks in advance!

     

Log in to post a comment.

MongoDB Logo MongoDB