[gecode-users] Adding restart-based search to ECLiPSe's interface to Gecode
Christian Schulte
cschulte at kth.se
Wed Aug 21 20:17:03 CEST 2013
Try to avoid the Gecode::Search::bab .... functions. Just create as follows:
Gecode::Search::Engine* e = new Gecode::BAB(...)
Then it also will work for RBS, and you do not have to create a second
engine yourself, this will the RBS class do for you.
And do not forget to delete e eventually!
Cheers
Christian
--
Christian Schulte, www.ict.kth.se/~cschulte
-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Kish Shen
Sent: Wednesday, August 21, 2013 07:08 PM
To: cschulte at kth.se
Cc: users at gecode.org
Subject: Re: [gecode-users] Adding restart-based search to ECLiPSe's
interface to Gecode
Hi Christian,
Thanks again for your reply!
On 21/08/2013 09:53, Christian Schulte wrote:
> Yes, that can be done. There is even a virtual base class for it (so
> a type for all engines). It is Gecode::Search::Engine.
>
As far as I can tell from the documentation pages, sengine in my code is (a
pointer to) class Gecode::Search::Engine, in
Engine* Gecode::Search::bab(...)
Engine* Gecode::Search::dfs(...)
Engine* Gecode::Search::rbs(...)
clicking on the "Engine" in the reference doc brings me to the
Gecode::Search::Engine page.
So am I doing this incorrectly (I am not very familiar with C++)? Should I
be assigning the engine type differently than what I am doing with sengine
(and sengine0 -- it would be much better if I don't have to explicitly use
two Engines)?
Cheers,
Kish
_______________________________________________
Gecode users mailing list
users at gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users
More information about the users
mailing list