[gecode-users] regarding the advisors in GeCode

Christian Schulte cschulte at kth.se
Wed Aug 22 16:16:13 CEST 2012


Hi,

 

Please read the documentation first.

 

Christian

 

--

Christian Schulte, KTH, web.it.kth.se/~cschulte/

 

From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Yong LIN
Sent: Wednesday, August 22, 2012 3:17 PM
To: users at gecode.org
Subject: [gecode-users] regarding the advisors in GeCode

 

Hi All,

I have a few questions regarding the structure of advisor in the GeCode
system ask for your advices.

1. I see that a propagator maintains a list of advisors and each advisor
monitors one of the variables that the propagator subscribes. I am wondering
whether it is certain that every variable of a propagator will be monitored
by one and only one advisor respectively in current propagator (from
variable's perspective, it is possible to have multiple advisors, since a
variable could be subscribed by more than one propagator) ?  and every
propagator in a space should have a list of advisors for its variables? 

2. I see that the constraint propagation is conducted through executing
propagators scheduled in a queue. But, when I attempt to access the list of
advisors of a executing propagator (by p -> u.advisors, which should return
the pointer to the head of the advisor list of the propagator),  I get a
NULL pointer. I am wondering what's is the reason for not being able to
access the advisors of a propagator. Whether we need explicitly switch it
on? 
 
Thanks very much for your advices in advance!
best regards,
Lin 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20120822/2c02d1bc/attachment.html>


More information about the users mailing list