choco-solver icon indicating copy to clipboard operation
choco-solver copied to clipboard

IStateIntVector.size() removed from choco-solver-4.0.5

Open fhermeni opened this issue 8 years ago • 2 comments

Hi

It is no longer possible to know the size of my vector, this is a bit annoying because you already store that data. Now, I have to maintain that value in my code ?

fhermeni avatar Oct 06 '17 18:10 fhermeni

Can you tell us what you are using the vector for ?

For instance, only removing elements which are restored on backtrack ? Or only adding elements which are removed on backtrack ? Both cases ? Do you need to preserve order ?

cprudhom avatar Oct 09 '17 07:10 cprudhom

I just reported same issue since I don't see a way how to get values from StateIntVector when I don't know their indexes. In a propagator I use it to record indexes of same instantiated tasks to not calculate them again since the propagator is called very often.

gregy4 avatar May 25 '18 14:05 gregy4