This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: simulated annealing
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Francisco J Molina <FJMolina at lbl dot gov>
- Cc: "gsl-discuss at sources dot redhat dot com" <gsl-discuss at sources dot redhat dot com>
- Date: Mon, 17 Jun 2002 21:19:19 +0100 (BST)
- Subject: Re: simulated annealing
- References: <3D0A9D84.573FEC9C@lbl.gov>
Francisco J Molina writes:
> Do you know if there is any way to solve this problem( trying to make
> gsl_siman_solv work in the fixed-size mode, when the size of the
> configuration is part of the input and the configuration is described
> by several elements of different data types )
Hi,
I don't think there is any clean way to do this in C.
> Second question:
>
> In the non-fixed-approach, can I use new and delete in the functions
> to clone, create and delete configurations?
Possibly, but perhaps it would involve fiddling with casts.
The simulated annealing algorithm is fairly short so I'd recommend
converting it into C++ for simplicity.
Brian