help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] gsl_siman() and best solution using vector<int>


From: Brian Gough
Subject: Re: [Help-gsl] gsl_siman() and best solution using vector<int>
Date: Tue, 15 Apr 2008 20:56:06 +0100
User-agent: Wanderlust/2.14.0 (Africa) Emacs/22.1 Mule/5.0 (SAKAKI)

At Mon, 14 Apr 2008 17:56:15 +0200,
Stefano Bolli wrote:
> I've a problem using gsl_siman(...), I'm using version 1.11 of the GSLlibrary.
> Reading the documentation I expect that at the end the pointer to initial
> solution
> now point to the memory that contain the representation of the best solution
> found executing the algorithm.
> Executing my program I correctly obtain the evaluation of the best cost,
> BUT
> the solution returned is simply the last computed and not the best !!!
> 
> Note that I am using vector<int> as data structure to rapresent my problem.

Do you provide working 'copyfunc' and 'copy_constructor' functions?
If not, you will see this type of incorrect behavior I think.

-- 
Brian Gough




reply via email to

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