problems with `nBestGenomes'

Thomas Binder binder at iue.tuwien.ac.at
Mon Mar 27 09:07:49 EST 2000


Hi!

Im having serious troubles using a value other than `1' for the nBestGenomes 
parameter of the GA class.

Note that this is not (probably not?) directly related to a problem I posted 
last week (multi-threading issues ...).

The behaviour is that the objective function seems to be called with a 
non-initialized (or not properly initialized) genome. This, in turn, results in 
a request for a parameter set which is NOT within the bounds specified in the 
allele set.

The violation seems to occur in the method:

	void updateBestIndividual(const GAPopulation & pop, GABoolean flag)

of the GAStatistics class.


The attached program demonstrates this behaviour. 

I don't think the problem is specific to a certain compiler or operating system. 
I tried g++ 2.95.2 on RH-6.1 and CXX-6.0 on Tru64 UNIX, there is absolutely no 
difference.

Any clues what's wrong here?


best regards,
Tom
-- 
"Computers are like air conditioners - they stop working properly when you open
 Windows"
                            \\\|///
                          \\  ~ ~  //
                           (  @ @  )
/------------------------oOOo-(_)-oOOo-----------------------------------------\
| Thomas Binder                        |                                       |
| Institute for  Microelectronics      | phone: ++43/1/58801-36036             |
| Technical University Vienna          |                                       |
| Gusshausstrasse  27-29 / E360        | fax  : ++43/1/58801-36099             |
| A-1040  Vienna                       |                                       |
| A U S T R I A                        | email: binder at iue.tuwien.ac.at        |
\---------------------------------Oooo.----------------------------------------/
                        .oooO     (   )
                        (   )      ) /
                         \ (      (_/
                          \_)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gatest.cc
Type: application/octet-stream
Size: 1407 bytes
Desc: not available
Url : http://mailman.mit.edu/pipermail/galib/attachments/20000327/c93628fb/attachment.obj


More information about the galib mailing list