[eclipse-clp-users] eclipse

From: paniz alipour <alipourpaniz_at_...6...>
Date: Fri, 17 Sep 2010 11:37:58 +0430
how can i implement this code that taks fewer time
,num_stud(Num)
,cap_Room(Cap)

,(
for(I,1,NCourse),foreach(F,X),foreach(N,Num),param(NRoom,Cap,T,Timeslots)do
     (for(J,1,Timeslots),foreach(M,F),param(I,NRoom,T,Cap,N)do
        (for(K,1,NRoom),foreach(H,M),foreach(C,Cap),param(T,N,I,J)do
          U is (C-N),
          subscript(T,[I,J,K],BB),
         (U<0->G is (N-C);G is 0),
          %BB is T[I,J,K],
          H#=G*BB

        )
     )
 )
 ,flatten(X,L3)
 ,Z#=sum(L3)
Received on Fri Sep 17 2010 - 07:08:07 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 09 2018 - 02:05:29 CEST