help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] Semantics of gsl_siman_metric_t


From: Marco Maggi
Subject: Re: [Help-gsl] Semantics of gsl_siman_metric_t
Date: Wed, 22 Dec 2010 20:59:34 +0100

"Saqib Ilyas" wrote:
> The  documentation says that  the GSL  Simulated Annealing
> function  gsl_siman_metric_t(void *xp,  void  *yp), should
> return  the  distance between  two  configurations xp  and
> yp. Semantically, should it be, x - y or y - x?

Probably  it was  meant to  be  "x-y", but  notice that  the
metric    function   is   used    only   for    logging   by
gsl_siman_solve_many(),  that is  when  the "print_position"
argument is  not NULL.  So if  you do not  use printing with
solve_many, just ignore the metric function.

HTH
-- 
Marco Maggi



reply via email to

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