[gecode-users] Syntax

Christian Schulte cschulte at kth.se
Mon Mar 18 11:02:30 CET 2013


Dear Maria,

I have to admit that I do not really understand your problem. Maybe some code would help? And then what do you mean by abort?

Best
Christian

--
Christian Schulte, Professor of Computer Science, KTH, www.ict.kth.se/~cschulte/


-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf Of Maria.Mannone at ircam.fr
Sent: Friday, March 15, 2013 4:58 PM
To: users at gecode.org
Subject: [gecode-users] Syntax

Hello everyone,
I'm a new Gecode user (I have started this week). I have a doubt about the syntax, but I hope that it isn't a too naive one. In my code, there is a cycle for that defines elements of the array x[i], i = 1…n-1. I must write the condition on the last term, x[n-1], as the result of an expression out of the cycle for, like d[n-1] = expr(*this, abs(x[0]-x[n-1]), opt.icl()); However, this way doesn't seem the correct one, since, using it, the execution is aborted. The same problem if I utilize d[n-1] = expr(*this, abs(a+b),opt.icl()); where 'a' and 'b' have been defined.
Could you give me some clarifications?
Thanks very much.
M

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




More information about the users mailing list