bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gsl] Simulated annealing range problem


From: Brian Gough
Subject: Re: [Bug-gsl] Simulated annealing range problem
Date: Mon, 14 Nov 2005 16:13:32 +0000

Daniel Webb writes:
 > On line 199 in siman/siman.c is:
 > 
 >    } else if (gsl_rng_uniform(r) < exp (-(new_E - E)/(params.k * T)) ) {
 > 
 > which is the line that decides to take a step in the direction of higher
 > objective function energy sometimes.  The problem is that my objective
 > function sometimes returns very large new_E for a small change in parameters,
 > leading to exp(-750) for example, and errno is set to ERANGE.  Should this
 > condition be checked for?  

Thanks for the bug report.  I will add a check to avoid that.

-- 
Brian Gough

Network Theory Ltd,
Publishing Free Software Manuals --- http://www.network-theory.co.uk/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]