[gecode-users] BinPacking constraint crash

Guido Tack tack at gecode.org
Thu Mar 28 22:25:36 CET 2013


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.Rijsman at 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.rijsman at quintiq.com
> I www.quintiq.com
> 
> 
> 
> _______________________________________________
> Gecode users mailing list
> users at gecode.org
> https://www.gecode.org/mailman/listinfo/gecode-users

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20130329/f1b7001f/attachment.html>


More information about the users mailing list