Hi, don't know exactly what u are trying to do, but u could solve your problem this way: add param(Result) and (I=NN->Result=NG;true) a bit hacky, maybe someone else has a better idea best regards Christian Bogdan Tanasa schrieb: > Hi, > > I am trying to do something like this: > ... > (for(I, 1, NN), param(NG, RHO, YMSP) do > length(Z, I), > append(Z, _, YMSP), > checkRho(Z, RHO, NG)), > writeln(NG) > .. > > for each I the NG will take different values and would like to keep the > last one but I receive the No answer. > > I assume the problem is when I = 2 because NG already has a value and will > interact with the param. > > How can I solve the problem? > > Best regards, > Bogdan. > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > ECLiPSe-CLP-Users mailing list > ECLiPSe-CLP-Users_at_lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/eclipse-clp-users > >Received on Thu Apr 08 2010 - 11:25:03 CEST
This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET