[gecode-users] Custom propagator with custom advisors

David Rijsman David.Rijsman at quintiq.com
Fri Feb 15 11:40:35 CET 2013


Dear Christian,

that is indeed the problem and needed the extra pair of eyes to see this mistake, thanks for reviewing this! I can also see now how this happened when I copy pasted my subscription from the propagator to the advisor when I decided to use an advisor....




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:27
Subject: 	RE: [gecode-users] Custom propagator with custom advisors

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