[gecode-users] Is there any overridable function to print only the best solution?
Guido Tack
tack at gecode.org
Sat Dec 8 23:29:51 CET 2012
Hi,
instead of using the Driver module to run the search, simply call a search engine directly. This is documented in Sect. 2.5 (Best Solution Search) in "Modelling and Programming with Gecode".
Cheers,
Guido
On 09/12/2012, at 4:55 , Holmes Giovanny Salazar Osorio <hgsosorio at gmail.com> wrote:
> Hi all,
>
> I'm coding my grade job with Gecode 3.7.3. And I'm using maximize script and BAB, in order to find the best solution to my CSP.
>
> Now, in the print function, I write an xml file with the solution to the problem, but, I have a problem, the print function is called each time that gecode finds a solution better than the last. Then, the xml file is written each time that the print function is called.
>
> My question is, If it can be modified the print function? in order to write the xml file only when the best solution is found.
>
> Thanks in advance,
>
> Holmes
>
>
> --
> "El secreto del éxito, está en la disciplina"
> Holmes Giovanny Salazar Osorio
> Ingeniería de Sistemas
> Universidad del Valle - Sede Tuluá
>
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users
--
Guido Tack,
http://www.csse.monash.edu/~guidot/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20121209/35ee7a70/attachment.html>
More information about the users
mailing list