[gecode-users] error_segmentation

Christian Schulte cschulte at kth.se
Mon Jan 20 21:26:24 CET 2014


Please read MPG, you first have to properly initialize the arrays. C

 

--

Christian Schulte, www.ict.kth.se/~cschulte

 

From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of mehdi m
Sent: Monday, January 20, 2014 09:23 PM
To: users at gecode.org
Subject: [gecode-users] error_segmentation

 

Hello everyone,

in my model,  i want to express : x <--> Sum Ai*Bi = 0.

why i use linear constraint and reification such as :

 

IntArgs A ;

BoolVarArray B;

BoolVar b;

reify r (b);

linear (*this, A , B , IRT_EQ , 0 , r);

 

when running this gives me a segmentation fault. when I deleted the
parameter r that passes, the problem might therefore be in the parameter r.

 

if someone has an idea ! .

thank you.

Cheers,

Mehdi  

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


More information about the users mailing list