[gecode-users] Custom propagator with custom advisors

Christian Schulte cschulte at kth.se
Fri Feb 15 11:27:08 CET 2013


In the constructor of the advisor, you actually do not subscribe the advisor
but the advisor's propagator! And in dispose you cancel the advisor. Boom!

Cheers
Christian

--
Christian Schulte, www.ict.kth.se/~cschulte/


> -----Original Message-----
> From: David Rijsman [mailto:David.Rijsman at quintiq.com]
> Sent: Friday, February 15, 2013 11:18 AM
> To: users at gecode.org; cschulte at kth.se
> Subject: RE: [gecode-users] Custom propagator with custom advisors
> 
> Hi Christian,
> 
> wonderful, that is indeed a mistake but that constructor is not invoked
and does
> not resolve the problem,
> 
> 
> 
> 
> David J. Rijsman
> Algorithm Lead
> Quintiq
> 
> T +31 (0)73 691 07 39
> F +31 (0)73 691 07 54
> M +31 (0)62 127 68 29
> E david.rijsman at quintiq.com
> I www.quintiq.com
> 
> 
> >>>
> From: 	"Christian Schulte" <cschulte at kth.se>
> To:	"'David Rijsman'" <David.Rijsman at quintiq.com>, <users at gecode.org>
> Date: 	15-2-2013 11:13
> Subject: 	RE: [gecode-users] Custom propagator with custom advisors
> 
> Hi,
> 
> The TestPropagator constructor for cloning is broken! You update MCouncil
> with itself!
> 
> 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 David Rijsman
> > Sent: Friday, February 15, 2013 11:04 AM
> > To: users at gecode.org
> > Subject: [gecode-users] Custom propagator with custom advisors
> >
> > Hi,
> >
> > attached I have small example implementing a propagator on two views
> > (does
> > nothing) with its own advisors. I get an error at its end of its life
> > and
> I can not
> > figure out what I am doing wrong. Any pointers what I am missing?
> >
> > The error happens in line 64: MCouncil.dispose(home);
> >
> > thanks,
> >
> >
> >
> >
> >
> > David J. Rijsman
> > Algorithm Lead
> > Quintiq
> >
> > T +31 (0)73 691 07 39
> > F +31 (0)73 691 07 54
> > M +31 (0)62 127 68 29
> > E david.rijsman at quintiq.com
> > I www.quintiq.com
> >
> 
> 
> 





More information about the users mailing list