[gecode-users] How control the engine??

Christian Schulte schulte at imit.kth.se
Mon Feb 27 16:00:29 CET 2006


Hi, that's great. Some things can be done in a more elegant way maybe (maybe
using a virtual function and always pass an EndCondition object. this would
be less efficient but nicer).

We are currently preparing 1.0.1 where your patch will not go in. Then let's
see for 1.0.2.

Christian

--
Christian Schulte, http://www.imit.kth.se/~schulte/ 

-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Rafael Meneses
Sent: Friday, February 24, 2006 7:03 PM
To: users at gecode.org
Subject: Re: [gecode-users] How control the engine??


On 2/24/06, Guido Tack <tack at ps.uni-sb.de> wrote:
> > No, the only way you currently can interrupt is in between 
> > requesting better solutions from the BAB engine. However this sounds 
> > like a useful (and reasonably simple) addition, even though it 
> > should be a user supplied stop criterion being more general than 
> > just time... But it should be very simple for you to hack something 
> > up by yourself and tell us...
>
> Maybe a hint to get you started:
> Have a look at search/bab-copy.cc or search/bab-reco.cc. Both contain 
> a similar while(true) loop that does the main exploration. The easiest 
> way to implement something like a timeout would be to use the failure 
> count - just stop the search when it exceeds a certain limit. You must 
> then return true and set s1 to NULL.
>

Thanks...

I finished the patch....

The patch includes an example, in the directory examples the file
golombTimeout.cc


Bye....


--
Rafael Meneses
http://www.labsd.inf.utfsm.cl/~rmeneses





More information about the gecode-users mailing list