This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: simulated annealing


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]