Re: [jgap-users] Using 'FitnessFunction.evaluate' to evaluate Chromosomes against EACH OTHER?
Brought to you by:
klausikm
From: <ric...@ca...> - 2003-03-06 03:40:04
|
Neil, Thank you so much for such a fantastic response and a truly impressive turn-around time. I'm afraid, for my own part, I'm some way from being in a position to use BulkFitnessFunction (I first have to code a reasonably generic way to turn Chromosomes into JOONE networks and create the 'play each other' code, though in my defence I HAVE built the game playing simulation part :), so please forgive me if I go quiet for a little while. I wasn't expecting you to come back so fast (let alone this be part of a release), and was just trying to 'get all my ducks in a row' ready to start (so to speak). Having said that, I WILL get to this (when hobby time allows), and WILL let you know my results. In the meantime, many thanks again, and I hope - as you said - others find this a generally useful feature, Richard. Neil Rotstan <ne...@bl...> To: jga...@li... Sent by: cc: jga...@li...ur Subject: Re: [jgap-users] Using 'FitnessFunction.evaluate' to ceforge.net evaluate Chromosomes against EACH OTHER? 06/03/2003 02:25 PM Hi Richard, Ok, I've checked in an initial implementation of the bulk fitness function to CVS. You'll need to perform an anonymous checkout to get the code (or, if you prefer, I can mail you a tar or zip). If you want to go the anonymous checkout route, you can find a link at the bottom of the JGAP home page: http://jgap.sourceforge.net Basically, you need to do two things to use the new code: first, extend BulkFitnessFunction for your fitness function instead of the normal FitnessFunction class; and second, when you setup your Configuration object, use the setBulkFitnessFunction() method on the Configuration object instead of the normal setFitnessFunction() method. Note that you cannot use both a bulk fitness function and a normal fitness function at the same time--the Configuration object should throw an exception if you try. Otherwise, everything should work the same. To set the fitness values of the chromosomes in your fitness function, use the new setFitnessValue() method in the Chromosome class. Let me know if you have any questions or run into any problems! I'll write up some additional documentation and create some examples in the next few days. Neil On Thu, 6 Mar 2003 ric...@ca... wrote: > Neil, > > No, you haven't misunderstood me, and yes - that would be perfect for what > I'm trying to achieve: sorry I didn't realize where you were coming from > earlier :) > > Richard. ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ jgap-users mailing list jga...@li... https://lists.sourceforge.net/lists/listinfo/jgap-users |