overlow error

Aditya adityabhambri at yahoo.com
Fri Aug 16 20:06:49 CEST 2002


Hi,
  I am running python 2.2.1 on Red Ht Linux 7.3. Whenever I try to run
the example for GA in Scipy. I get the following error

> evals:  250
> evaluation time:  0.24
> Traceback (most recent call last):
>   File "examples.py", line 64, in ?
>     ex1()
>   File "examples.py", line 60, in ex1
>     galg.evolve()
>   File "algorithm.py", line 127, in evolve
>     self.initialize()
>   File "algorithm.py", line 73, in initialize
>     self.pop.initialize(self.settings);
>   File "population.py", line 133, in initialize
>     self.scale()
>   File "population.py", line 226, in scale
>     self.scaler.scale(self)
>   File "scaling.py", line 15, in scale
>     avg = my_mean(sc)
>   File "/usr/lib/python2.2/site-packages/scipy/ga/ga_util.py", line 
30, in
> my_mean
>     a = remove_NaN(s)
>   File "/usr/lib/python2.2/site-packages/scipy/ga/ga_util.py", line 
62, in
> remove_NaN
>     INF = 1e300**2              # These lines are the culprits
> OverflowError: (34, 'Numerical result out of range')
> 

Please Can you explain me why I am getting this error.
thanks
regards,
Aditya



More information about the Python-list mailing list