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

 

--

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

 

From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf
Of mehdi m
Sent: Monday, January 20, 2014 09:23 PM
To: users@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  

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

Reply via email to