Hi,

thanks, that should definitely not crash.  I've committed a fix so that l[i]=0 
for all i if b.size()==0 (that's consistent with the semantics we describe in 
the doc comment).

Cheers,
Guido

On 29/03/2013, at 1:28 , David Rijsman <david.rijs...@quintiq.com> wrote:

> Hi,
> 
> minor issue (I think in all versions with a bin packing constraint); I am not 
> sure to what degree we want Gecode to protect me from invoking constraint 
> with nonsense arguments but I noticed that the bin packing constraint:
> 
> binpacking(Home home, const IntVarArgs& l, const IntVarArgs& b, const 
> IntArgs& s, IntConLevel)
> 
> crashed when you pass an empty list of b and s (I have one load variable). 
> This due to line 64 in bin-packing.cpp where it is assumed there is at least 
> one bin.
> 
> 
> 
> 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

-- 
Guido Tack,
http://www.csse.monash.edu/~guidot/



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

Reply via email to