Hi,
Yes, we should probably add a more detailed example for how to use
LcoalHandles, I agree. I think the biggest issue is coming up with a
good small example where it is useful.
In general, you should only store the handle in the objects that
actually need access to it. If I've understood your case correctly,
that should be in your propagator and in your custom brancher, but not
the model. This is so that if your brancher is done and the propagator
is entailed, the LocalObject will not be copied over to new clones.
As for your crashes, that seems to me like an issue in how you have
implemented your LocalObject. Do you create a new copy of the data
container (such as std::vector), or are you re-using the same data
container for all LocalObject isntances? If you could share the code
for it, it would be helpful in diagnosing your issue.
Cheers,
Mikael
On Tue, Jul 13, 2021 at 6:23 PM 'John' via Gecode
> To view this discussion on the web visit
https://groups.google.com/d/msgid/gecode/bb09c148-d4ef-4211-919f-b40b215ed0bfn%40googlegroups.com.
--
Mikael Zayenz Lagerkvist