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.rijs...@quintiq.com
I www.quintiq.com


>>> 
From:   "Christian Schulte" <cschu...@kth.se>
To:     "'David Rijsman'" <david.rijs...@quintiq.com>, <users@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.rijs...@quintiq.com] 
> Sent: Friday, February 15, 2013 11:18 AM
> To: users@gecode.org; cschu...@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.rijs...@quintiq.com 
> I www.quintiq.com 
> 
> 
> >>>
> From:         "Christian Schulte" <cschu...@kth.se>
> To:   "'David Rijsman'" <david.rijs...@quintiq.com>, <users@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-boun...@gecode.org [mailto:users-boun...@gecode.org] On
> > Behalf Of David Rijsman
> > Sent: Friday, February 15, 2013 11:04 AM
> > To: users@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.rijs...@quintiq.com 
> > I www.quintiq.com 
> >
> 
> 
> 





_______________________________________________
Gecode users mailing list
users@gecode.org
https://www.gecode.org/mailman/listinfo/gecode-users

Reply via email to