I have generated :
curr(p5,2) curr(p5,1) curr(p5,6)
How can I sum up the lase fields 2+1+6?
I saw the following in page 21 of clingo_guild.pdf :
15 :- not M-2 [ enroll(C) : hours(C,H) = H ] M, max_hours(M).
and come up :
#sum [pick(P) : curr(P,I) = I].
but I get:
ERROR: unstratified predicate in:
bus3.lp:73:2: #sum[pick(P)=I:curr(P,I)].
bus3.lp:73:17: curr/2
I am using clingo 3.0.4. Thank you for your help.